:root {
  --bg: #f8f5ee;
  --paper: rgba(255, 255, 255, 0.9);
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5dccd;
  --accent: #b45309;
  --accent-dark: #78350f;
  --accent-soft: #f59e0b;
  --mint: #115e59;
  --shadow: 0 24px 80px rgba(120, 53, 15, 0.12);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(17, 94, 89, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, #f3efe6 100%);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 18px 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 20px;
  margin-bottom: 22px;
}

.hero-copy,
.hero-panel,
.card,
.sticky-panel {
  background: var(--paper);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 220, 205, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.hero-panel {
  padding: 28px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero-text {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

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

.hero-score div {
  border-radius: 22px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.92), rgba(245, 158, 11, 0.86));
  color: #fff7ed;
}

.hero-score span {
  display: block;
  font-size: 13px;
  opacity: 0.9;
}

.hero-score strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
}

.hero-panel ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

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

.card {
  padding: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.section-target,
.question-standard,
.question-advice,
.status {
  color: var(--muted);
  line-height: 1.7;
}

.section-score {
  min-width: 112px;
  text-align: center;
  border-radius: 18px;
  padding: 16px 12px;
  background: #fff7ed;
  color: var(--accent-dark);
  font-weight: 700;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
}

.question-list {
  display: grid;
  gap: 16px;
}

.question-card {
  border: 1px solid rgba(229, 220, 205, 0.95);
  border-radius: 22px;
  padding: 18px;
  background: #fffdfa;
}

.question-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.question-points {
  white-space: nowrap;
  color: var(--accent-dark);
  font-weight: 700;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.radio-chip {
  position: relative;
  flex: 1 1 120px;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
}

.radio-chip span {
  display: block;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  text-align: center;
  background: #fff;
}

.radio-chip input:checked + span {
  background: linear-gradient(135deg, rgba(17, 94, 89, 0.95), rgba(14, 165, 233, 0.82));
  border-color: transparent;
  color: #f0fdfa;
}

.number-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.hint {
  margin: 0;
  font-size: 13px;
  color: #7c6f64;
}

.summary-card {
  min-width: 0;
}

.sticky-panel {
  position: sticky;
  top: 20px;
  padding: 24px;
  overflow: hidden;
}

.summary-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.summary-heading h2 {
  margin-bottom: 18px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e6f5ee;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}

.live-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  content: "";
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.summary-overview {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 12%, rgba(251, 191, 36, 0.35), transparent 32%),
    linear-gradient(135deg, #173f3d, #0f766e);
  color: #f8fffe;
}

.score-dial {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#fbbf24 calc(var(--score-progress) * 1%), rgba(255, 255, 255, 0.2) 0);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.18);
}

.score-dial-inner {
  display: grid;
  width: 88px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  background: #104b47;
  text-align: center;
}

.score-dial-inner strong {
  font-size: 38px;
  line-height: 0.95;
}

.score-dial-inner span,
.grade-copy > span {
  font-size: 12px;
  opacity: 0.72;
}

.grade-copy strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 30px;
  line-height: 1;
}

.grade-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(248, 255, 254, 0.78);
}

.completion-card {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #efe3d2;
  border-radius: 18px;
  background: #fffaf3;
}

.completion-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.completion-card strong {
  color: var(--ink);
}

.completion-track,
.module-copy i {
  display: block;
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #eee4d5;
}

.completion-track {
  margin-top: 10px;
}

.completion-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #34d399);
  transition: width 220ms ease;
}

.summary-block + .summary-block {
  margin-top: 22px;
}

#moduleScores,
#suggestionList {
  display: grid;
  gap: 10px;
}

.module-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid #f1e7da;
  border-radius: 14px;
  background: #fffdf9;
}

.module-copy {
  min-width: 0;
  flex: 1;
}

.module-copy > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.module-copy i {
  margin-top: 7px;
}

.module-copy b {
  display: block;
  width: var(--module-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e28a2d, #f5b844);
  transition: width 220ms ease;
}

.module-row strong {
  white-space: nowrap;
  color: #24333c;
}

.module-row small {
  font-size: 12px;
  color: #8a8178;
}

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

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-soft));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #efe4d2;
  color: var(--accent-dark);
}

.status {
  margin: 0;
}

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

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 14px 12px 48px;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .sticky-panel {
    border-radius: 22px;
  }

  .field-grid,
  .hero-score {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .question-topline,
  .actions {
    display: grid;
  }

  .summary-overview {
    grid-template-columns: 102px minmax(0, 1fr);
    padding: 16px;
  }

  .score-dial {
    width: 98px;
  }

  .score-dial-inner {
    width: 76px;
  }
}
