:root {
  --ink: #111827;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #ffffff;
  --mist: #f6f8fa;
  --cyan: #00b8a9;
  --cyan-dark: #05877f;
  --amber: #f59e0b;
  --green: #22c55e;
  --red: #ef4444;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.055) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #ffffff 0%, var(--mist) 52%, #eef4f4 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 14px 0;
  background: rgba(246, 248, 250, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links a,
.secondary-btn {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(0, 184, 169, 0.42);
  background: #e6fffc;
  color: var(--cyan-dark);
  font-family: "Avenir Next", "DIN Alternate", "Helvetica Neue", sans-serif;
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  background: #fff;
  color: var(--ink);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 48px;
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: 42px 0 76px;
}

.eyebrow,
.panel-kicker,
.question-kicker {
  margin: 0;
  color: var(--cyan-dark);
  font-family: "Avenir Next", "DIN Alternate", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  color: #0b172a;
  font-size: clamp(46px, 6.4vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1::after {
  display: block;
  width: 68px;
  height: 6px;
  margin-top: 18px;
  background: var(--cyan);
  content: "";
}

.hero-subtitle {
  max-width: 650px;
  margin: 0;
  color: #344054;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.35;
}

.hero-actions,
.result-actions,
.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 34px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-btn {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.16);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.secondary-btn,
.ghost-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.ghost-btn {
  color: #475467;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #475467;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-preview,
.live-panel,
.question-panel,
.result-radar,
.advice-panel {
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.dashboard-preview {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.dashboard-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 184, 169, 0.16), transparent 36%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.16), transparent 42%);
  pointer-events: none;
}

.dashboard-preview > * {
  position: relative;
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preview-header strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.2;
}

.score-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 184, 169, 0.32);
  border-radius: 999px;
  padding: 8px 11px;
  background: #e6fffc;
  color: var(--cyan-dark);
  font-family: "Avenir Next", "DIN Alternate", "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(138px, 0.88fr);
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.radar {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  overflow: visible;
}

.radar-wrap {
  display: grid;
  place-items: center;
}

.metric-stack {
  display: grid;
  gap: 10px;
}

.metric-item {
  display: grid;
  gap: 6px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.metric-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.metric-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.info-strip article {
  min-height: 164px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
}

.info-strip span {
  color: var(--amber);
  font-family: "Avenir Next", "DIN Alternate", "Helvetica Neue", sans-serif;
  font-weight: 900;
}

.info-strip h2,
.section-heading h2,
.question-state h2,
.loading-state h2,
.result-hero h2 {
  letter-spacing: 0;
}

.info-strip h2 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.info-strip p,
.dimension-card p,
.level-card p,
.advice-panel p,
.result-hero p {
  color: var(--muted);
  line-height: 1.75;
}

.dimensions,
.levels,
.assessment,
.result {
  padding: 82px 0 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.dimension-card,
.level-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.dimension-card {
  min-height: 230px;
  padding: 18px;
}

.dimension-card .number {
  color: var(--cyan-dark);
  font-family: "Avenir Next", "DIN Alternate", "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.dimension-card h3 {
  margin: 44px 0 12px;
  font-size: 21px;
}

.dimension-card p {
  margin: 0;
  font-size: 14px;
}

.level-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.level-card {
  display: grid;
  align-content: space-between;
  min-height: 190px;
  padding: 16px;
}

.level-card strong {
  display: block;
  color: var(--cyan-dark);
  font-family: "Avenir Next", "DIN Alternate", "Helvetica Neue", sans-serif;
  font-size: 26px;
}

.level-card h3 {
  margin: 4px 0 12px;
  font-size: 18px;
}

.level-card p {
  margin: 0;
  font-size: 13px;
}

.assessment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 22px;
  align-items: start;
}

.question-panel {
  min-height: 600px;
  padding: 26px;
}

.progress-area {
  display: grid;
  gap: 10px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #475467;
  font-size: 14px;
  font-weight: 800;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 240ms ease;
}

.question-state {
  min-height: 390px;
  padding-top: 42px;
}

.question-state h2,
.loading-state h2 {
  margin: 12px 0 26px;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.22;
}

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

.option-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.option-button:hover,
.option-button.is-selected {
  border-color: rgba(0, 184, 169, 0.76);
  box-shadow: 0 12px 30px rgba(0, 184, 169, 0.12);
  transform: translateY(-1px);
}

.option-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #edf1f5;
  color: #475467;
  font-family: "Avenir Next", "DIN Alternate", "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.option-button.is-selected .option-letter {
  background: #e6fffc;
  color: var(--cyan-dark);
}

.option-text {
  font-weight: 800;
  line-height: 1.5;
}

.question-actions {
  justify-content: space-between;
  margin-top: 10px;
}

.live-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.live-panel .radar {
  justify-self: center;
}

.loading-state {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.loading-state p {
  color: var(--cyan-dark);
  font-weight: 900;
}

.scan-orbit {
  width: 88px;
  height: 88px;
  border: 2px solid rgba(0, 184, 169, 0.2);
  border-top-color: var(--cyan);
  border-right-color: var(--amber);
  border-radius: 50%;
  animation: spin 950ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result {
  padding-bottom: 76px;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 184, 169, 0.24);
  border-radius: var(--radius);
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(230, 255, 252, 0.92), rgba(255, 255, 255, 0.9)),
    #fff;
  box-shadow: var(--shadow);
}

.result-hero h2 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
}

.result-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.result-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 190px;
  border-left: 1px solid rgba(0, 184, 169, 0.24);
  padding-left: 28px;
  font-family: "Avenir Next", "DIN Alternate", "Helvetica Neue", sans-serif;
}

.result-score span {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 900;
}

.result-score small {
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.95fr));
  gap: 14px;
}

.result-radar,
.advice-panel {
  padding: 22px;
}

.result-radar {
  grid-row: span 2;
}

.result-radar h3,
.advice-panel h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.result-radar-svg {
  display: block;
  margin: 0 auto 18px;
}

.advice-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advice-panel li {
  position: relative;
  padding-left: 18px;
  color: #475467;
  font-weight: 700;
  line-height: 1.65;
}

.advice-panel li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.next-plan {
  grid-column: span 2;
}

.next-plan p {
  margin: 0;
  font-weight: 700;
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100% - 36px));
  transform: translateY(24px);
  border: 1px solid rgba(0, 184, 169, 0.28);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .hero,
  .assessment-layout,
  .result-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

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

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

  .live-panel {
    position: static;
  }

  .result-score {
    justify-content: flex-start;
    border-left: 0;
    border-top: 1px solid rgba(0, 184, 169, 0.24);
    padding: 18px 0 0;
  }

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

  .result-radar,
  .next-plan {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    width: min(100% - 24px, 1180px);
  }

  .nav-links {
    display: none;
  }

  .section-shell {
    width: min(100% - 24px, 1180px);
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 50px);
    line-height: 1.08;
  }

  .hero h1::after {
    width: 52px;
    height: 5px;
    margin-top: 14px;
  }

  .preview-grid,
  .info-strip,
  .dimension-grid,
  .level-track {
    grid-template-columns: 1fr;
  }

  .dashboard-preview,
  .question-panel,
  .live-panel,
  .result-hero,
  .result-radar,
  .advice-panel {
    padding: 18px;
  }

  .question-panel {
    min-height: auto;
  }

  .question-state {
    min-height: 430px;
    padding-top: 32px;
  }

  .progress-copy {
    display: grid;
    gap: 4px;
  }

  .question-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .question-actions .primary-btn {
    grid-column: 1 / -1;
  }
}

@media print {
  .topbar,
  .hero,
  .info-strip,
  .dimensions,
  .levels,
  .assessment,
  .result-actions,
  .toast {
    display: none !important;
  }

  .result {
    display: block !important;
    padding: 0;
  }
}
