:root {
  --bg: #f4efe6;
  --paper: rgba(255, 251, 244, 0.88);
  --paper-strong: rgba(255, 251, 244, 0.96);
  --ink: #18222f;
  --muted: #5a6470;
  --line: rgba(24, 34, 47, 0.12);
  --accent: #ff6b57;
  --accent-alt: #2db39f;
  --accent-blue: #5f7cff;
  --shadow: 0 26px 80px rgba(30, 34, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 87, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(95, 124, 255, 0.1), transparent 32%),
    linear-gradient(180deg, #f9f4ec 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
}

.aurora {
  position: fixed;
  z-index: 0;
  filter: blur(24px);
  pointer-events: none;
}

.aurora-a {
  top: 8%;
  left: -6%;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(255, 153, 116, 0.35);
  animation: float-a 12s ease-in-out infinite;
}

.aurora-b {
  right: -5%;
  bottom: 10%;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: rgba(75, 184, 165, 0.2);
  animation: float-b 14s ease-in-out infinite;
}

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(24, 34, 47, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 34, 47, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 48px;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 34px;
  margin-bottom: 20px;
}

.workspace {
  display: grid;
  gap: 20px;
}

.panel {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24, 34, 47, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.95;
  max-width: none;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-copy,
.muted,
#progress-hint {
  color: var(--muted);
}

.hero-copy {
  max-width: 52rem;
  font-size: 1.02rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 34, 47, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.instruction-list {
  display: grid;
  gap: 10px;
  padding-left: 1.1rem;
}

.status-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(24, 34, 47, 0.06);
  color: var(--muted);
  font-size: 0.94rem;
}

.intro-panel,
.question-panel,
.result-panel {
  padding: 28px;
}

.section-header,
.question-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.intro-stack {
  display: grid;
  gap: 18px;
}

.content-block {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(24, 34, 47, 0.08);
}

.content-head {
  display: grid;
  gap: 8px;
}

.overview-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.overview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(24, 34, 47, 0.08);
}

.overview-card h4 {
  font-size: 1rem;
}

.overview-body {
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.75;
}

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

.dimension-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(24, 34, 47, 0.08);
  box-shadow: inset 0 4px 0 var(--dimension-color);
}

.dimension-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dimension-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--dimension-color);
  color: #fffaf4;
  font-size: 1.15rem;
  font-weight: 800;
}

.dimension-meta {
  display: grid;
  gap: 4px;
}

.dimension-meta p,
.dimension-copy {
  color: var(--muted);
}

.dimension-meta p {
  font-size: 0.9rem;
}

.dimension-copy {
  line-height: 1.7;
}

.use-case-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
}

.use-case-list li {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(24, 34, 47, 0.04);
  border: 1px solid rgba(24, 34, 47, 0.08);
  line-height: 1.7;
}

.reminder-block {
  background:
    linear-gradient(135deg, rgba(255, 107, 87, 0.08), rgba(255, 179, 71, 0.08)),
    rgba(255, 255, 255, 0.58);
}

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

.start-block .profile-form {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
}

.profile-form label {
  display: grid;
  gap: 10px;
}

.profile-form span {
  color: var(--muted);
  font-size: 0.92rem;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

input:focus {
  outline: none;
  border-color: rgba(95, 124, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(95, 124, 255, 0.12);
  transform: translateY(-1px);
}

.intro-actions,
.question-actions,
.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a5c 100%);
  color: #fff8f0;
  box-shadow: 0 18px 30px rgba(255, 107, 87, 0.22);
}

.button.ghost {
  background: rgba(24, 34, 47, 0.06);
  color: var(--ink);
}

.progress-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(24, 34, 47, 0.05);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 34, 47, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  transition: width 220ms ease;
}

.question-card {
  margin-top: 18px;
  padding: 24px;
  border-radius: 24px;
  background: var(--paper-strong);
  border: 1px solid rgba(24, 34, 47, 0.08);
}

.question-chip {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.16);
  color: #a55a00;
  font-weight: 700;
}

.question-prompt {
  margin-top: 18px;
  font-size: clamp(1.16rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.option-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.option-card {
  width: 100%;
  text-align: left;
  padding: 18px 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(24, 34, 47, 0.1);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.option-card:hover,
.option-card.is-active {
  border-color: rgba(255, 107, 87, 0.42);
  box-shadow: 0 14px 30px rgba(255, 107, 87, 0.12);
}

.option-index {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 50%;
  background: rgba(24, 34, 47, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.navigator {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.nav-dot {
  padding: 10px 0;
  border-radius: 999px;
  border: 1px solid rgba(24, 34, 47, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 700;
}

.nav-dot.is-current {
  border-color: rgba(95, 124, 255, 0.55);
  background: rgba(95, 124, 255, 0.14);
  color: var(--ink);
}

.nav-dot.is-answered {
  background: rgba(45, 179, 159, 0.16);
  border-color: rgba(45, 179, 159, 0.4);
  color: #1e6f63;
}

.result-hero {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 107, 87, 0.12), rgba(95, 124, 255, 0.12)),
    rgba(255, 255, 255, 0.74);
}

.result-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.result-code {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(24, 34, 47, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.score-grid,
.insight-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.score-card,
.insight-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 34, 47, 0.08);
}

.score-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.score-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.score-value {
  color: var(--muted);
  font-size: 0.92rem;
}

.score-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 34, 47, 0.08);
  overflow: hidden;
}

.score-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card ul {
  display: grid;
  gap: 10px;
  padding-left: 1.1rem;
  margin-top: 12px;
}

.result-status {
  margin-top: 18px;
}

.hidden {
  display: none;
}

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, 24px, 0);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-24px, -18px, 0);
  }
}

@media (max-width: 900px) {
  .overview-copy,
  .profile-form,
  .dimension-grid,
  .score-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .question-topbar,
  .section-header,
  .progress-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 100%);
    margin: 20px auto 32px;
  }

  .hero,
  .intro-panel,
  .question-panel,
  .result-panel {
    padding: 20px;
  }

  .content-block,
  .question-card,
  .result-hero {
    padding: 18px;
  }

  .intro-actions,
  .question-actions,
  .result-actions {
    flex-direction: column;
  }

  .hero-facts {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
