:root {
  --text: #ebf6ff;
  --muted: #a3bdd8;
  --line: rgba(170, 214, 255, 0.18);
  --accent: #70d6ff;
  --accent-strong: #9af7da;
  --gold: #f2be6f;
  --panel: linear-gradient(165deg, rgba(12, 24, 42, 0.92), rgba(7, 14, 26, 0.94));
  --panel-strong: linear-gradient(165deg, rgba(14, 30, 52, 0.94), rgba(8, 16, 30, 0.96));
  --shadow: 0 24px 58px rgba(2, 8, 20, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --result-accent: var(--accent);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--text);
  font-family: "Microsoft YaHei", sans-serif;
  background: transparent;
}

.lbti-page-wrap {
  position: relative;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.backdrop-a {
  background:
    radial-gradient(circle at 12% 20%, rgba(95, 138, 123, 0.18), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(211, 108, 69, 0.12), transparent 24%);
}

.backdrop-b {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.25), transparent 32%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.2), transparent 36%);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel {
  border-radius: var(--radius-lg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(170, 214, 255, 0.22);
  background: rgba(112, 214, 255, 0.12);
  color: #d2edff;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  font-family: inherit;
}

.hero {
  padding: 32px;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  font-weight: 700;
}

.hero-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-stats,
.hero-actions,
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 24px;
}

.hero-actions {
  margin-top: 26px;
}

.stat-pill {
  min-width: 110px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(170, 214, 255, 0.16);
}

.stat-pill strong {
  display: block;
  font-size: 24px;
  color: #e6f6ff;
}

.stat-pill span {
  font-size: 13px;
  color: var(--muted);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #061321;
  background: linear-gradient(135deg, #7be4ff, #9af7da);
  box-shadow: 0 18px 34px rgba(47, 153, 182, 0.24);
}

.btn-secondary {
  color: #dcecff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(170, 214, 255, 0.22);
}

.btn-ghost {
  color: #b8d1ea;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(170, 214, 255, 0.24);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  line-height: 1.8;
}

.test-shell {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.test-top {
  position: sticky;
  top: calc(var(--shell-mobilebar-offset, 0px) + 12px);
  z-index: 20;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--panel-strong);
}

.test-top-main {
  flex: 1;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.progress-meta strong {
  font-size: 24px;
  color: #f5fbff;
}

.progress-bar {
  height: 12px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7be4ff, #8cf7d2);
  transition: width 0.24s ease;
}

.test-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.progress-percent {
  font-weight: 700;
  color: #dcecff;
}

.question-stage {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(112, 214, 255, 0.14), transparent 34%),
    linear-gradient(160deg, rgba(13, 24, 42, 0.94), rgba(8, 14, 26, 0.90));
}

.question-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.question-badge,
.question-kind,
.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 700;
}

.question-badge {
  background: rgba(112, 214, 255, 0.14);
  color: #d8f0ff;
}

.question-kind {
  background: rgba(242, 190, 111, 0.18);
  color: #ffddad;
}

.test-notice {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(242, 190, 111, 0.16);
  color: #ffe0b3;
  line-height: 1.7;
}

.question-title {
  margin-top: 24px;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.45;
  font-weight: 700;
  color: #f4fbff;
}

.options-wrap {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.option-card {
  width: 100%;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(170, 214, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: #edf6ff;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(170, 214, 255, 0.28);
  box-shadow: 0 12px 26px rgba(2, 8, 20, 0.42);
}

.option-card.selected {
  border-color: rgba(140, 247, 210, 0.36);
  background: linear-gradient(160deg, rgba(112, 214, 255, 0.18), rgba(140, 247, 210, 0.12));
}

.option-card-label {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.option-code {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(112, 214, 255, 0.16);
  color: #dcf4ff;
  font-weight: 800;
}

.option-text {
  font-size: 16px;
  line-height: 1.8;
  color: #edf6ff;
}

.question-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.result-layout {
  display: grid;
  gap: 18px;
}

.result-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.82fr) minmax(320px, 0.95fr);
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--result-accent) 44%, transparent);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--result-accent) 20%, transparent), transparent 34%),
    linear-gradient(160deg, rgba(13, 24, 42, 0.94), rgba(8, 14, 26, 0.92));
}

.result-title {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 700;
}

.result-badge {
  margin-top: 18px;
  background: color-mix(in srgb, var(--result-accent) 22%, transparent);
  color: #eff9ff;
}

.result-tagline {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  color: color-mix(in srgb, var(--result-accent) 70%, #f0f8ff);
}

.result-summary {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.85;
}

.result-side {
  display: grid;
  gap: 14px;
}

.result-art {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--result-accent) 16%, transparent), transparent 40%);
}

.result-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(170, 214, 255, 0.20);
  box-shadow: 0 18px 36px rgba(2, 8, 20, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.result-art-copy {
  display: grid;
  gap: 6px;
}

.result-art-copy strong {
  font-size: 18px;
  color: color-mix(in srgb, var(--result-accent) 72%, #f4fbff);
}

.result-art-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.panel {
  padding: 22px;
}

.panel h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.panel p {
  color: var(--muted);
  line-height: 1.85;
}

.secondary-type {
  margin-top: 10px;
  color: var(--text);
  font-weight: 700;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.top-matches,
.dimension-overview,
.dimension-groups {
  display: grid;
  gap: 12px;
}

.match-item,
.overview-item,
.dimension-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(170, 214, 255, 0.16);
}

.match-item-top,
.overview-item-top,
.dimension-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.match-item small,
.overview-item small {
  color: var(--muted);
}

.match-score,
.level-pill {
  white-space: nowrap;
  font-weight: 800;
}

.level-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(112, 214, 255, 0.12);
  color: #def4ff;
}

.level-pill.level-L {
  background: rgba(145, 167, 204, 0.20);
  color: #d9e9ff;
}

.level-pill.level-M {
  background: rgba(242, 190, 111, 0.22);
  color: #ffe2b9;
}

.level-pill.level-H {
  background: rgba(140, 247, 210, 0.20);
  color: #d5ffee;
}

.dimension-model-group {
  display: grid;
  gap: 12px;
}

.dimension-model-title {
  font-size: 18px;
  color: var(--accent-strong);
}

.dimension-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lbti-credit {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(170, 214, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.lbti-credit p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.lbti-credit a {
  color: #9af7da;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(154, 247, 218, 0.5);
}

.lbti-credit a:hover {
  color: #b8ffe9;
  border-bottom-color: rgba(184, 255, 233, 0.85);
}

@media (max-width: 900px) {
  .test-top,
  .result-hero,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .test-top {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 14px 12px 42px;
  }

  .hero,
  .question-stage,
  .result-hero,
  .panel {
    padding: 18px;
  }

  .test-top {
    padding: 14px 14px;
    gap: 10px;
  }

  .progress-meta strong {
    font-size: 20px;
  }

  .hero-actions,
  .result-actions,
  .question-footer,
  .test-top-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .result-actions .btn,
  .question-footer .btn,
  .test-top-actions .btn {
    flex: 1 1 auto;
  }

  .progress-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .question-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .option-card {
    padding: 15px;
  }

  .option-card-label {
    gap: 12px;
  }

  .option-code {
    width: 34px;
    height: 34px;
  }

  .option-text {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .dimension-model-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .test-shell {
    gap: 12px;
  }

  .test-top {
    top: calc(var(--shell-mobilebar-offset, 0px) + 8px);
    padding: 10px;
    gap: 8px;
    border-radius: 18px;
  }

  .progress-meta {
    flex-direction: row;
    align-items: baseline;
  }

  .progress-meta .eyebrow {
    display: none;
  }

  .progress-meta strong {
    font-size: 18px;
    letter-spacing: 0.01em;
  }

  .progress-bar {
    height: 8px;
    margin-top: 8px;
  }

  .test-top-actions {
    width: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .progress-percent {
    font-size: 13px;
    white-space: nowrap;
  }

  .test-top-actions .btn {
    flex: 0 0 auto;
    padding: 8px 10px;
    min-height: 36px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
  }
}
