:root {
  --purple: #8658f5;
  --purple-dark: #6d38e8;
  --purple-soft: #f1ebff;
  --blue: #4d9cff;
  --mint: #16c7a5;
  --amber: #f5a400;
  --ink: #172033;
  --muted: #6c7486;
  --line: #e9e4f7;
  --panel: #ffffff;
  --soft: #faf9ff;
  --warn-bg: #fff8e7;
  --warn-text: #aa4a08;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16px 16px, rgba(134, 88, 245, 0.12) 1.2px, transparent 1.4px) 0 0 / 32px 32px,
    linear-gradient(90deg, #fbfdff 0%, #fff 38%, #fbf8ff 100%);
  min-height: 100vh;
}

button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 76px;
  padding: 0 12vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #eee9fb;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--purple);
  cursor: pointer;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, #7d54ef, #a777ff);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  color: #8e8b9b;
  margin-top: 3px;
}

.ghost-button,
.secondary-button {
  color: #5c5569;
  background: #f3eefb;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 16px;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #8052ed, #a476fb);
  border-radius: 999px;
  padding: 18px 34px;
  min-width: 188px;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 18px 34px rgba(134, 88, 245, 0.28);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 70px 24px 86px;
  background: linear-gradient(180deg, #f5f0ff 0%, #fbfaff 100%);
}

.pill {
  display: inline-flex;
  align-items: center;
  color: var(--purple);
  background: #ebe1ff;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  margin-bottom: 34px;
}

.hero h1,
.section h2,
.type-band h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  color: #4d5362;
  font-size: 22px;
  line-height: 1.85;
  margin: 26px auto 46px;
}

.stats-grid,
.talent-grid,
.type-preview,
.career-grid,
.plan-grid {
  display: grid;
  gap: 24px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  max-width: 880px;
  margin-top: 76px;
}

.stats-grid article,
.talent-card,
.type-preview article,
.question-card,
.report-card,
.career-card,
.plan-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(44, 32, 90, 0.08);
}

.stats-grid article {
  min-height: 178px;
  padding: 28px 22px;
  display: grid;
  place-items: center;
}

.stats-grid span {
  color: var(--purple);
  font-size: 30px;
}

.stats-grid strong {
  display: block;
  font-size: 30px;
  margin-top: 10px;
}

.stats-grid small {
  color: #8a8994;
  font-size: 16px;
}

.section,
.type-band,
.cta-section {
  padding: 88px 24px;
  text-align: center;
}

.section-subtitle,
.cta-section p {
  color: #858a99;
  font-size: 18px;
  margin: 14px auto 58px;
}

.talent-grid {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  max-width: 1260px;
  margin: 0 auto;
}

.talent-card {
  min-height: 186px;
  padding: 28px 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: #fbf9ff;
}

.talent-icon {
  font-size: 38px;
  line-height: 1;
}

.talent-card h3,
.type-preview h3 {
  margin: 0;
  font-size: 22px;
}

.talent-card p,
.type-preview p {
  margin: 0;
  color: #7a7f8e;
  line-height: 1.7;
}

.type-band {
  background: #f4f0ff;
}

.type-preview {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1250px;
  margin: 0 auto;
}

.type-preview article {
  min-height: 268px;
  padding: 40px 34px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.type-preview span {
  justify-self: center;
  color: var(--purple);
  background: #f0e7ff;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
}

.cta-section {
  min-height: 420px;
  display: grid;
  align-content: center;
  justify-items: center;
}

.quiz-shell {
  width: min(920px, calc(100% - 32px));
  min-height: 0;
  height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: center;
}

.quiz-header,
.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.quiz-header {
  margin-bottom: 10px;
}

.quiz-header strong,
.quiz-header small {
  display: block;
}

.quiz-header small,
#quiz-percent {
  color: var(--muted);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.progress-track {
  height: 8px;
  background: #eceff6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-track div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7552f3, #a35ff6);
  transition: width 0.24s ease;
}

.question-card {
  min-height: 0;
  padding: 22px 34px;
  display: grid;
  align-content: center;
}

.question-kicker {
  color: var(--purple);
  background: var(--purple-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
}

.question-card h1 {
  margin: 16px 0 18px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.35;
}

.options {
  display: grid;
  gap: 8px;
}

.option-button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #e0d7fb;
  border-radius: 8px;
  background: #fff;
  color: #273044;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
}

.option-button.active {
  color: var(--purple-dark);
  border-color: var(--purple);
  background: #f3edff;
  font-weight: 800;
}

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

.quiz-actions .secondary-button {
  background: #fff;
  border: 1px solid var(--line);
}

.quiz-actions .primary-button,
.quiz-actions .secondary-button {
  min-width: 138px;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 16px;
}

.report-hero {
  min-height: 230px;
  position: relative;
  overflow: hidden;
  padding: 58px 24px 84px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #7535eb 100%);
}

.report-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -40px;
  height: 80px;
  background: #fbfaff;
  transform: rotate(-2deg);
}

.report-hero h1 {
  margin: 12px 0;
  font-size: 34px;
}

.report-hero p {
  margin: 0;
}

.report-hero span {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 4px 12px;
}

.stars::before,
.stars::after {
  content: "•  •   •     •";
  position: absolute;
  color: rgba(255, 255, 255, 0.55);
  font-size: 44px;
  letter-spacing: 90px;
}

.stars::before {
  top: 16px;
  left: 12%;
}

.stars::after {
  top: 92px;
  left: 34%;
}

.report-wrap {
  width: min(860px, calc(100% - 28px));
  margin: -52px auto 80px;
  position: relative;
  z-index: 1;
}

.summary-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 34px;
  padding: 24px 36px;
}

.score-ring {
  width: 172px;
  height: 172px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--purple) var(--ring), #eee9fb 0);
}

.score-ring div {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
}

.score-ring strong {
  color: var(--purple);
  font-size: 46px;
  line-height: 1;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--purple);
  background: var(--purple-soft);
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 22px;
  font-weight: 800;
}

.summary-card p {
  color: #485165;
  font-size: 17px;
  line-height: 1.8;
}

.summary-card .quiz-actions {
  justify-content: flex-end;
}

.report-card {
  margin-top: 26px;
  overflow: hidden;
}

.report-card-header {
  min-height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid #edf0f6;
}

.report-card-header h2 {
  margin: 0;
  font-size: 22px;
}

.section-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 8px 18px rgba(134, 88, 245, 0.25);
  margin-right: 10px;
}

.report-body {
  padding: 28px 26px 34px;
}

.radar-wrap {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.radar-label {
  fill: var(--purple);
  font-size: 14px;
}

.score-row {
  display: grid;
  grid-template-columns: 118px 1fr 38px 74px;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f1f5;
}

.score-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.letter {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.mini-track {
  height: 10px;
  border-radius: 999px;
  background: #e8ebf2;
  overflow: hidden;
}

.mini-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7955ef, #8d58f4);
  border-radius: inherit;
}

.level {
  color: #00a891;
  background: #dffaf5;
  border: 1px solid #c0efe7;
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
  text-align: center;
}

.interpret-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: center;
}

.interpret-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--purple-soft);
  font-size: 34px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag {
  color: var(--purple-dark);
  background: var(--purple-soft);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 14px;
  font-weight: 700;
}

.quote {
  margin: 24px 0;
  border-left: 5px solid var(--amber);
  background: #fffaf0;
  padding: 18px 20px;
  color: #9e4208;
  font-weight: 800;
  line-height: 1.75;
}

.text-list {
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
  color: #4d5668;
  line-height: 2;
}

.scenario-list,
.synergy-list,
.risk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 14px 0 24px;
  list-style: none;
}

.scenario-list li {
  color: var(--purple-dark);
  background: var(--purple-soft);
  border-radius: 8px;
  padding: 9px 14px;
}

.risk-box {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 8px;
  padding: 20px 24px;
  line-height: 2;
}

.synergy-list li {
  background: #eefbf5;
  color: #009b73;
  border-radius: 8px;
  padding: 12px 16px;
}

.growth-card {
  background: #fbfcff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

.growth-card h3 {
  margin: 0 0 10px;
}

.growth-card p {
  color: #5d6677;
  line-height: 1.8;
}

.growth-card strong {
  color: #00a173;
}

.similar-person {
  display: grid;
  gap: 12px;
}

.similar-person-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.similar-person-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.career-grid {
  grid-template-columns: repeat(2, 1fr);
}

.career-card {
  padding: 22px;
  background: #fffbff;
}

.career-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}

.match-bar {
  width: 110px;
  height: 10px;
  background: #e6edf8;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.match-bar span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.caution {
  color: var(--warn-text);
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
}

.plan-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.plan-card {
  padding: 22px 24px;
  box-shadow: none;
}

.plan-card h3 {
  margin: 0 0 18px;
}

.plan-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #404b5f;
  line-height: 1.6;
}

.plan-card li {
  margin: 14px 0;
  padding-left: 28px;
  position: relative;
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mint);
  font-weight: 900;
}

.note {
  color: #8a8d98;
  background: #f0f0f2;
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 18px;
  }

  .stats-grid,
  .talent-grid,
  .type-preview,
  .career-grid,
  .plan-grid,
  .summary-card {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    width: min(520px, 100%);
  }

  .talent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-card {
    justify-items: center;
    text-align: center;
  }

  .score-row {
    grid-template-columns: 92px 1fr 34px;
  }

  .score-row .level {
    grid-column: 2 / 4;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .brand small,
  .ghost-button {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero p {
    font-size: 18px;
  }

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

  .question-card {
    padding: 24px 18px;
  }

  .question-card h1 {
    margin: 18px 0 20px;
    font-size: 24px;
  }

  .quiz-actions .primary-button,
  .quiz-actions .secondary-button {
    min-width: 132px;
    padding: 14px 18px;
    font-size: 16px;
  }
}

/* CDK Verification Modal */
#cdk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cdk-modal {
  background: #fff;
  border-radius: 16px;
  width: min(480px, calc(100% - 32px));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cdk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.cdk-modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--purple);
}

.cdk-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0eff5;
  color: #666;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cdk-modal-close:hover {
  background: #e5e0f0;
}

.cdk-modal-body {
  padding: 20px 28px 28px;
}

.cdk-modal-tip {
  color: #6c7486;
  font-size: 16px;
  margin: 0 0 20px;
}

.cdk-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 18px;
  border: 2px solid #e5e0f0;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.cdk-input:focus {
  border-color: var(--purple);
}

.cdk-input::placeholder {
  color: #aaa5b8;
}

.cdk-error {
  color: #d32f2f;
  background: #fff5f5;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 14px;
  min-height: 40px;
}

.cdk-submit {
  width: 100%;
  margin-top: 20px;
  min-width: unset;
}

.cdk-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
