:root {
  --bg: #f4f6f9;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --text: #1d2129;
  --text-strong: #303133;
  --muted: #4e5969;
  --muted-light: #86909c;
  --line: rgba(59, 100, 246, 0.12);
  --primary: #3b64f6;
  --primary-dark: #2d52da;
  --primary-soft: #edf2fa;
  --accent: #dff0eb;
  --shadow: 0 4px 16px rgba(29, 33, 41, 0.04);
  --shadow-strong: 0 14px 30px rgba(59, 100, 246, 0.12);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "SF Pro Display",
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(223, 240, 235, 0.92), transparent 28%),
    radial-gradient(circle at bottom right, rgba(59, 100, 246, 0.1), transparent 24%),
    var(--bg);
  color: var(--text);
}

.page-shell {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header {
  padding: 8px 4px 24px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  background: linear-gradient(145deg, #4d73fa, #3b64f6);
  box-shadow: 0 12px 24px rgba(59, 100, 246, 0.24);
}

.brand-title,
.brand-subtitle,
.site-footer p,
.muted,
.help-text,
.step-note,
.summary-tagline,
.result-subtitle,
.dimension-caption,
.tiny-note {
  margin: 0;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--muted-light);
}

#app {
  display: grid;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(229, 230, 235, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 48px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 100, 246, 0.16), transparent 68%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(36px, 4.4vw, 40px);
  margin-top: 20px;
  line-height: 1.45;
  font-weight: 700;
  color: #2b3752;
}

.hero-subtitle {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin: 22px 0 28px;
}

.hero-title {
  max-width: 680px;
  letter-spacing: -0.02em;
}

.grid-2,
.grid-4,
.result-grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(229, 230, 235, 0.9);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text-strong);
}

.card p,
.body-copy,
.list li,
.metric-text,
.result-copy,
.statement-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.section {
  padding: 32px;
}

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

.section-title {
  font-size: 24px;
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-strong);
}

.list li + li {
  margin-top: 10px;
}

.cta-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

button,
.button-like {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  border-radius: 999px;
  padding: 16px 26px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

button:disabled,
.button-like:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(59, 100, 246, 0.18);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border: 1px solid rgba(59, 100, 246, 0.18);
  font-weight: 500;
}

.primary-btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-strong);
}

.secondary-btn:hover {
  background: #ffffff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.metric {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(229, 230, 235, 0.92);
  min-height: 150px;
  box-shadow: var(--shadow);
}

.metric-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-light);
}

.metric-value {
  margin: 18px 0 10px;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.statement {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: #f7f9fc;
  border: 1px solid #e5e6eb;
}

.statement-title {
  margin-bottom: 10px;
  font-size: 18px;
}

.statement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(59, 100, 246, 0.1);
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.checkbox-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.input-shell,
.textarea-shell,
.select-shell {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(229, 230, 235, 0.95);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  color: var(--text-strong);
  padding: 16px 18px;
  font: inherit;
}

.textarea-shell {
  min-height: 132px;
  resize: vertical;
  line-height: 1.8;
}

.field-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}

.checkbox-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(229, 230, 235, 0.9);
}

.checkbox-item input {
  margin-top: 4px;
}

.progress-shell {
  margin-bottom: 24px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted-light);
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(59, 100, 246, 0.12);
  overflow: hidden;
}

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

.question-card {
  padding: 28px;
}

.question-title {
  margin: 16px 0 22px;
  font-size: 30px;
  line-height: 1.45;
}

.option-list {
  display: grid;
  gap: 12px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 230, 235, 0.95);
  color: var(--text-strong);
  box-shadow: var(--shadow);
}

.option-btn.is-selected {
  background: rgba(59, 100, 246, 0.08);
  border-color: rgba(59, 100, 246, 0.32);
  color: var(--primary-dark);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.nav-row .secondary-btn,
.nav-row .primary-btn {
  min-width: 140px;
}

.result-hero {
  padding: 36px;
}

.result-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.result-title {
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 44px);
}

.result-subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.dimension-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(229, 230, 235, 0.92);
  box-shadow: var(--shadow);
}

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

.dimension-name {
  font-size: 17px;
  font-weight: 700;
}

.dimension-level {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
}

.dimension-bar {
  margin: 16px 0 10px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(59, 100, 246, 0.12);
  overflow: hidden;
}

.dimension-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), #7d97ff);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex: 0 0 auto;
}

.mini-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.feedback-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.feedback-form {
  display: grid;
  gap: 18px;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tiny-note {
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  justify-content: center;
  padding: 30px 10px 0;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-light);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 20px, 960px);
    padding-top: 18px;
  }

  .hero,
  .section,
  .result-hero,
  .question-card {
    padding: 22px;
  }

  .grid-2,
  .grid-4,
  .result-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
  }

  .feedback-panel,
  .section-header,
  .progress-meta,
  .nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row,
  .button-row {
    flex-direction: column;
  }

  button,
  .button-like {
    width: 100%;
  }

  .question-title {
    font-size: 24px;
  }
}
