:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #66706b;
  --line: #d7ded8;
  --soft: #f4f7f2;
  --paper: #ffffff;
  --sage: #597262;
  --sage-dark: #2f4f3f;
  --clay: #b66a4d;
  --gold: #d9a441;
  --blue: #416a8a;
  --shadow: 0 18px 55px rgba(37, 54, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

button,
a,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(244, 247, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: white;
  font-size: 13px;
}

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

.hero {
  min-height: calc(100vh - 65px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(36px, 7vw, 86px) 0;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 10px 0 18px;
  font-size: clamp(38px, 6.4vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.eyebrow {
  margin: 0;
  color: var(--clay);
  font-weight: 700;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  padding: 0 22px;
  background: var(--sage-dark);
  color: white;
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #a5afa8;
}

.secondary-button {
  padding: 0 20px;
  background: var(--gold);
  color: #231d10;
}

.ghost-button {
  padding: 0 14px;
  background: transparent;
  color: var(--sage-dark);
  border: 1px solid var(--line);
}

.text-link {
  color: var(--sage-dark);
  font-weight: 700;
  text-decoration: none;
}

.signal-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-panel div {
  min-height: 92px;
  padding: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f8faf7, #eef3ee);
  border-left: 5px solid var(--sage);
}

.signal-panel strong,
.signal-panel span {
  display: block;
}

.signal-panel strong {
  font-size: 22px;
}

.signal-panel span {
  color: var(--muted);
}

.assessment,
.results {
  padding: 58px 0;
}

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

.section-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.quiz-form {
  display: grid;
  gap: 24px;
}

.dimension {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.dimension-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  background: #e9efe8;
}

.dimension-header h3 {
  margin: 0;
  font-size: 26px;
}

.dimension-header p {
  margin: 0;
  color: var(--muted);
}

.question {
  padding: 22px;
  border-top: 1px solid var(--line);
}

.question p {
  margin: 0 0 14px;
  font-weight: 700;
}

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

.option input {
  position: absolute;
  opacity: 0;
}

.option span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfa;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.option input:checked + span {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: white;
  font-weight: 700;
}

.sticky-submit {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -12px 32px rgba(37, 54, 43, 0.1);
  backdrop-filter: blur(16px);
}

.sticky-submit strong,
.sticky-submit span {
  display: block;
}

.sticky-submit span {
  color: var(--muted);
  font-size: 14px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

.score-card,
.interpretation,
.conversion-band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.score-card,
.interpretation {
  padding: 24px;
}

.total-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.total-score span {
  color: var(--muted);
}

.total-score strong {
  font-size: 64px;
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  margin: 18px 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e7f0ea;
  color: var(--sage-dark);
  font-weight: 700;
}

.bars {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  background: #e7ebe6;
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.interpretation h3 {
  margin: 0 0 8px;
}

.interpretation p {
  margin: 0 0 22px;
  color: #3c4641;
}

.interpretation ul {
  margin: 0;
  padding-left: 20px;
}

.conversion-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 26px;
}

.conversion-band h2 {
  margin: 6px 0;
  font-size: clamp(24px, 3vw, 34px);
}

.conversion-band p:last-child {
  margin: 0;
  color: var(--muted);
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

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

  .hero {
    min-height: auto;
  }

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

  .sticky-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .sticky-submit .primary-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  main,
  footer {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    padding-inline: 12px;
  }

  .brand {
    font-size: 14px;
  }

  .ghost-button {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 13px;
  }

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

  .dimension-header,
  .question,
  .score-card,
  .interpretation,
  .conversion-band {
    padding: 18px;
  }
}
