:root {
  --bg: #f5f7fb;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --text: #172033;
  --muted: #5f6b85;
  --line: rgba(23, 32, 51, 0.08);
  --primary: #5a67ff;
  --primary-strong: #3b47d8;
  --accent: #22c1a1;
  --accent-warm: #ffb454;
  --shadow: 0 20px 60px rgba(58, 74, 125, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(90, 103, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 193, 161, 0.14), transparent 24%),
    var(--bg);
}

.page-shell {
  width: min(1100px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-copy,
.card,
.result-card,
.gallery-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}

.eyebrow,
.section-kicker,
.question-tease,
.gallery-kicker {
  color: var(--primary-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.hero-text,
.intro-list,
.question-hint,
.result-summary,
.metric-subtitle,
.detail-card p,
.detail-card li,
.gallery-subtitle,
.gallery-name-note,
.avatar-caption,
.share-line {
  color: var(--muted);
  line-height: 1.78;
}

.hero-pills,
.dimension-tags,
.roles-list,
.result-actions,
.meta-pills,
.gallery-badges,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills span,
.dimension-tags span,
.role-chip,
.meta-pill,
.gallery-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(90, 103, 255, 0.1);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 14px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
}

.intro-list,
.detail-card ul {
  padding-left: 18px;
}

.intro-list li,
.detail-card li {
  margin-bottom: 10px;
}

.method-card {
  padding: 22px;
  background: rgba(90, 103, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(90, 103, 255, 0.08);
}

.actions {
  margin-top: 28px;
}

.split-actions {
  justify-content: space-between;
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 12px 28px rgba(90, 103, 255, 0.28);
}

.button-secondary {
  background: rgba(23, 32, 51, 0.06);
  color: var(--text);
}

.button-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

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

.test-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.progress-meta {
  color: var(--muted);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(23, 32, 51, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 24px;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.2s ease;
}

.question-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.question-card h3 {
  margin: 12px 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.45;
}

.choice-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.choice-button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--panel-strong);
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.choice-button:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 103, 255, 0.18);
}

.choice-button.is-selected {
  border-color: rgba(90, 103, 255, 0.38);
  box-shadow: 0 12px 26px rgba(90, 103, 255, 0.18);
  background: rgba(90, 103, 255, 0.05);
}

.choice-key {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-warm), var(--primary));
  box-shadow: 0 8px 16px rgba(90, 103, 255, 0.18);
}

.choice-copy {
  display: block;
  font-size: 15px;
  line-height: 1.68;
  color: var(--text);
}

.hidden {
  display: none !important;
}

.share-banner {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(34, 193, 161, 0.08);
  border: 1px solid rgba(34, 193, 161, 0.16);
  color: #157e6d;
  font-weight: 700;
}

.result-card {
  padding: 0;
  overflow: hidden;
}

.result-top {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  padding: 28px;
}

.avatar-panel {
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(244, 248, 255, 0.9));
  border: 1px solid rgba(90, 103, 255, 0.08);
}

.avatar-name {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.avatar-frame {
  margin-top: 18px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 45, 80, 0.06);
}

.character-image {
  width: 100%;
  display: block;
  border-radius: 18px;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.gallery-frame {
  margin-top: 0;
}

.result-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-summary,
.share-line {
  margin: 0;
  font-size: 15px;
}

.result-hook {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(90, 103, 255, 0.06);
  border: 1px solid rgba(90, 103, 255, 0.1);
}

.result-hook strong {
  color: var(--primary-strong);
}

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

.detail-card,
.metric-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.detail-card h3,
.metric-card h3,
.gallery-title {
  margin-top: 0;
  margin-bottom: 10px;
}

.metric-card {
  background: linear-gradient(180deg, rgba(90, 103, 255, 0.08), rgba(90, 103, 255, 0.02));
  border: 1px solid rgba(90, 103, 255, 0.1);
}

.detail-card ul {
  margin: 0;
}

.roles-list {
  margin-top: 14px;
}

.gallery-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gallery-title {
  font-size: 20px;
}

@media (max-width: 960px) {
  .intro-grid,
  .result-top,
  .result-grid,
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .split-actions,
  .test-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 18px, 1100px);
    padding: 18px 0 44px;
  }

  .hero-copy,
  .card,
  .gallery-card,
  .result-top,
  .result-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy,
  .card,
  .gallery-card {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .question-card,
  .detail-card,
  .metric-card,
  .avatar-panel {
    padding: 18px;
  }

  .question-card h3 {
    font-size: 22px;
  }

  .choice-button {
    padding: 14px;
  }

  .choice-key {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}
