:root {
  --bg: #f3f0ff;
  --bg-card: #ffffff;
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #a78bfa;
  --teal: #8b5cf6;
  --indigo: #6d28d9;
  --cream: #ede9fe;
  --mint: #ddd6fe;
  --text: #1e1b4b;
  --text-soft: #6b7280;
  --shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
  --radius: 20px;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --green: #059669;
  --green-bg: #ecfdf5;
  --orange: #d97706;
  --orange-bg: #fffbeb;
  --warn-bg: #fef9c3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(124, 58, 237, 0.1), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(167, 139, 250, 0.12), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.08), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 220px;
  height: 220px;
  background: #93c5fd;
  top: -60px;
  right: -40px;
}

.orb-2 {
  width: 180px;
  height: 180px;
  background: #67e8f9;
  bottom: 10%;
  left: -50px;
  animation-delay: -3s;
}

.orb-3 {
  width: 140px;
  height: 140px;
  background: #a5b4fc;
  top: 40%;
  right: 10%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.05); }
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.screen {
  display: none;
  animation: fadeUp 0.45s ease;
}

.screen.active {
  display: block;
}

.gate-card {
  margin-top: 12vh;
  padding: 32px 24px 28px;
  background: var(--bg-card);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.95);
  text-align: center;
}

.gate-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}

.gate-eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
}

.gate-title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.gate-desc {
  margin: 0 0 22px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.gate-form {
  text-align: left;
}

.gate-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.gate-code-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(124, 58, 237, 0.35);
  background: #fff;
  font-size: 1.6rem;
  font-family: inherit;
  letter-spacing: 0.45em;
  text-align: center;
  color: var(--text);
  outline: none;
  -webkit-text-security: disc;
}

.gate-code-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.gate-error {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #d9534f;
  text-align: center;
}

.gate-error[hidden] {
  display: none;
}

.gate-footnote {
  margin: 16px 0 0;
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.5;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  text-align: center;
  margin-bottom: 28px;
  padding-top: 8vh;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

.highlight {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin: 16px auto 0;
  max-width: 340px;
  line-height: 1.7;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.feature-chips span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(59, 130, 246, 0.25);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.btn-primary,
.btn-secondary {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  margin-top: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.footnote {
  text-align: center;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.btn-back {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}

.section-head {
  text-align: center;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.section-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.person-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.person-card label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.person-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.person-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.question-progress-wrap {
  margin-bottom: 20px;
}

.question-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.question-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  overflow: hidden;
}

.question-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.35s ease;
}

.question-head h2 {
  font-size: 1.25rem;
  line-height: 1.45;
}

.question-subtitle {
  margin: 8px 0 0 !important;
  font-size: 0.85rem !important;
  color: var(--accent) !important;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(59, 130, 246, 0.15);
  background: var(--bg-card);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.04);
}

.option-btn:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.option-btn.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.08));
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.loading-card {
  margin-top: 20vh;
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 3px solid rgba(59, 130, 246, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.loading-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.result-card {
  position: relative;
  background: var(--bg-card);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.stamp {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid var(--primary);
  transform: rotate(12deg);
  opacity: 0.75;
}

.result-header {
  text-align: center;
  margin-bottom: 20px;
}

.result-names {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.result-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--text);
}

.result-career-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.result-tagline {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.talent-hero {
  text-align: center;
  margin: 20px 0 24px;
  padding: 22px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.talent-emoji {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 8px;
}

.talent-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
}

.talent-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.talent-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.block-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-soft);
}

.dimension-panel {
  margin: 20px 0 32px;
  padding: 22px 18px;
  border-radius: 16px;
  background: rgba(240, 246, 252, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.dimension-score-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dim-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.dim-group + .dim-group {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px dashed rgba(59, 130, 246, 0.15);
}

.dim-row {
  display: grid;
  grid-template-columns: 76px 1fr 42px;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  padding: 8px 0;
  min-height: 36px;
}

.dim-row-label {
  color: var(--text);
  font-weight: 500;
}

.dim-row-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  overflow: hidden;
}

.dim-row-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.6s ease;
}

.dim-row-val {
  font-weight: 700;
  color: var(--primary-dark);
  text-align: right;
}

.result-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 28px;
}

.result-block.snapshot {
  margin-top: 16px;
}

.result-block.caution {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.5), rgba(254, 226, 226, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.result-block.caution h3 {
  color: #b45309;
}

.result-block.logic {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.7), rgba(237, 233, 254, 0.5));
}

.result-block.growth {
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.5), rgba(224, 242, 254, 0.6));
}

.result-block ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text);
}

.result-block li {
  margin-bottom: 4px;
}

.logic-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.logic-score-chip {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo);
}

.section-gap {
  margin-top: 8px;
}

.match-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.radar-section {
  margin: 24px 0 28px;
}

.block-title {
  margin: 16px 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
}

.top-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 28px;
}

.trait-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--cream);
  color: var(--primary-dark);
}

.result-block {
  margin-bottom: 0;
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(240, 246, 252, 0.8);
}

.result-block p {
  line-height: 1.75;
}

.share-qr-panel {
  margin-top: 20px;
  padding: 22px 18px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.15);
  text-align: center;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}

.share-qr-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.share-qr-desc {
  margin: 0 0 16px;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.qrcode-wrap {
  display: inline-flex;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  margin-bottom: 12px;
}

.qrcode-img {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 8px;
}

.qrcode-wrap .qrcode-placeholder {
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: center;
  padding: 8px;
}

.share-url-text {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-soft);
  word-break: break-all;
  line-height: 1.5;
  opacity: 0.85;
}

#result-export-root {
  background: var(--bg);
  padding-bottom: 8px;
}

.result-block.warm {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.9), rgba(204, 251, 241, 0.6));
}

.result-block h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.result-block p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
}

.career-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.career-item {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: #fafcff;
}

.career-item.is-primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.06));
}

.career-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.career-item-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.career-item-match {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.career-item-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.career-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  vertical-align: middle;
}

.share-quote {
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.06);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-soft);
  text-align: center;
}

.result-actions {
  margin-top: 28px;
  padding-bottom: 8px;
}

.copy-toast {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
}

.copy-toast[hidden] {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px 24px;
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* —— 结果页 v2 —— */
.result-names {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-soft);
  text-align: center;
}

.panel-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.panel-subtitle {
  margin: -6px 0 14px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.panel-card {
  margin: 20px 0;
  padding: 20px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.06);
}

.type-hero-v2 {
  padding: 20px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(237, 233, 254, 0.95), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(124, 58, 237, 0.15);
  margin-bottom: 8px;
}

.type-hero-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.type-emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.type-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.type-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
}

.type-keywords {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.podium-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.podium-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.08);
  font-size: 0.84rem;
}

.podium-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.podium-label {
  font-weight: 600;
  color: var(--text);
}

.podium-score {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.8rem;
  text-align: right;
}

.podium-score em {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  font-style: normal;
  margin-top: 2px;
}

.tier-high { color: #7c3aed; }
.tier-mid { color: #8b5cf6; }
.tier-normal { color: #a78bfa; }
.tier-low { color: #94a3b8; }

.core-mode-box {
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--green-bg);
  border: 1px solid rgba(5, 150, 105, 0.15);
  margin-bottom: 14px;
}

.core-mode-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
}

.core-mode-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #065f46;
}

.primary-match-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.06);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.primary-match-bar strong {
  color: var(--text);
  font-size: 0.95rem;
}

.match-pill-sm {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.fit-tags-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.fit-tags-title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.fit-tags-desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.fit-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.fit-row-label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text-soft);
  min-width: 52px;
  padding-top: 4px;
}

.fit-tag {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.fit-tag--yes {
  background: var(--green-bg);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.fit-tag--no {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.talent-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 22px 56px 1fr 32px 68px;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.rank-num {
  font-weight: 700;
  color: var(--primary);
}

.rank-label {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

.rank-bar-fill.tier-low {
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

.rank-score {
  font-weight: 700;
  color: var(--primary-dark);
  text-align: right;
}

.rank-tier {
  font-size: 0.65rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.interpret-type {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.interpret-body,
.interpret-combo {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text);
}

.warn-box {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.82rem;
  line-height: 1.6;
}

.warn-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.warn-box strong {
  display: block;
  margin-bottom: 4px;
  color: #b45309;
}

.warn-box p {
  margin: 0;
  color: #92400e;
}

.core-talent-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.talent-detail-card {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.5), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.tdc-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.tdc-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.tdc-meta h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.tdc-stars {
  display: block;
  font-size: 0.75rem;
  color: #f59e0b;
  letter-spacing: 1px;
}

.tdc-score {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.tdc-tagline {
  margin: 0 0 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.5;
}

.tdc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tdc-sub {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
}

.tdc-pros ul,
.tdc-cons ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  line-height: 1.65;
}

.tdc-pros li { color: #047857; }
.tdc-cons li { color: #b45309; }

.growth-panel {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.6), rgba(255, 255, 255, 0.95));
}

.growth-intro {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.growth-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.growth-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(5, 150, 105, 0.1);
}

.growth-icon {
  font-size: 1.2rem;
}

.growth-text {
  flex: 1;
  min-width: 0;
}

.growth-text strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 4px;
}

.growth-text p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.growth-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
}

.career-interest-line {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.career-interest-desc {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.career-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.career-card-v2 {
  padding: 16px;
  border-radius: 16px;
  background: #faf9ff;
  border: 1px solid rgba(124, 58, 237, 0.12);
  position: relative;
}

.career-card-v2.is-top {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.8), rgba(255, 255, 255, 0.95));
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.1);
}

.cc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cc-rank {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  flex-shrink: 0;
}

.cc-head h4 {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 0;
}

.cc-stars {
  font-size: 0.72rem;
  color: #f59e0b;
  letter-spacing: 1px;
}

.cc-why,
.cc-suit,
.cc-risk,
.cc-step {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text);
}

.cc-why span,
.cc-suit span,
.cc-risk span,
.cc-step span {
  display: inline-block;
  min-width: 72px;
  font-weight: 700;
  font-size: 0.72rem;
  margin-right: 4px;
}

.cc-why span { color: var(--green); }
.cc-suit span { color: var(--primary); }
.cc-risk span { color: var(--orange); }
.cc-step span { color: #6366f1; }

.cc-match {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

.caution-panel {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.4), rgba(255, 255, 255, 0.95));
  border-color: rgba(245, 158, 11, 0.2);
}

.caution-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.caution-row {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.caution-row strong {
  display: block;
  font-size: 0.86rem;
  color: #92400e;
  margin-bottom: 4px;
}

.caution-row p {
  margin: 0;
  font-size: 0.78rem;
  color: #a16207;
  line-height: 1.55;
}

@media (min-width: 520px) {
  .career-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .tdc-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .rank-row {
    grid-template-columns: 20px 48px 1fr 28px;
  }

  .rank-tier {
    display: none;
  }

  .tdc-cols {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .option-btn {
    padding: 14px 14px;
    font-size: 0.9rem;
  }
}
