:root {
  --ink: #17212b;
  --muted: #627181;
  --line: #dfe8ee;
  --paper: #ffffff;
  --wash: #f4f8f9;
  --teal: #24b8b0;
  --teal-dark: #16827d;
  --orange: #f3aa26;
  --blue: #3d8fe3;
  --green: #74bf33;
  --rose: #dd6b72;
  --shadow: 0 18px 45px rgba(26, 48, 66, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(36, 184, 176, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fbfc 0%, #eef5f1 48%, #f7f3ee 100%);
  font-family:
    "STZhongsong", "华文中宋", "Songti SC", "SimSun", serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(20px, 3vw, 30px);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.status-pill,
.tag,
.trait-chip {
  border: 1px solid rgba(36, 184, 176, 0.28);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(36, 184, 176, 0.1);
  font-weight: 700;
}

.status-pill {
  padding: 10px 14px;
  white-space: nowrap;
}

.assessment-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid rgba(223, 232, 238, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(26, 48, 66, 0.07);
  padding: 12px;
}

.stepper-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.stepper-item span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: white;
  font-size: 14px;
}

.stepper-item strong {
  font-size: 14px;
}

.stepper-item.active {
  color: var(--teal-dark);
}

.stepper-item.active span {
  border-color: var(--teal);
  color: white;
  background: var(--teal);
}

.stepper-item.done {
  color: var(--ink);
}

.stepper-item.done span {
  border-color: var(--green);
  color: white;
  background: var(--green);
}

.stepper-line {
  flex: 1 1 28px;
  min-width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
}

.stepper-line.done {
  background: var(--green);
}

.step-panel {
  display: none;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(223, 232, 238, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.step-panel.active {
  display: block;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.intro-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.intro-actions,
.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-btn,
.ghost-btn {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-btn {
  color: white;
  background: var(--teal);
}

.primary-btn:hover {
  background: var(--teal-dark);
}

.primary-btn:disabled,
.primary-btn:disabled:hover {
  cursor: not-allowed;
  color: #8a98a6;
  background: #e8eef1;
  border-color: #d7e0e5;
}

.ghost-btn {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.visual-board {
  position: relative;
  min-height: 380px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(23, 33, 43, 0.88), rgba(23, 33, 43, 0.72)),
    linear-gradient(90deg, rgba(36, 184, 176, 0.5), rgba(243, 170, 38, 0.45));
  padding: 28px;
}

.score-ring {
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  align-content: center;
  margin: 12px auto 30px;
  border: 12px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--teal);
  border-right-color: var(--orange);
  border-radius: 50%;
  color: white;
}

.score-ring span {
  font-size: 48px;
  font-weight: 900;
}

.score-ring small {
  font-weight: 700;
}

.metric-strip {
  height: 12px;
  margin: 16px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.metric-strip::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
}

.metric-strip.teal::after {
  width: 82%;
  background: var(--teal);
}

.metric-strip.orange::after {
  width: 64%;
  background: var(--orange);
}

.metric-strip.green::after {
  width: 74%;
  background: var(--green);
}

.module-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.module-cloud span {
  padding: 11px 12px;
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  text-align: center;
  font-weight: 800;
}

.panel-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.panel-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.compact h2 {
  font-size: clamp(24px, 3vw, 34px);
}

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

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.7;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(36, 184, 176, 0.14);
}

.resume-upload {
  display: block;
  border: 1px dashed rgba(36, 184, 176, 0.5);
  border-radius: 8px;
  background: rgba(36, 184, 176, 0.08);
  padding: 16px;
}

.resume-upload input {
  margin-top: 10px;
  background: transparent;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

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

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 0.25s ease;
}

.completion-hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.completion-hint.complete {
  color: var(--teal-dark);
}

.question-list,
.forced-list,
.ranking-list,
.module-details {
  display: grid;
  gap: 16px;
}

.question-card,
.forced-card,
.ranking-card,
.module-card,
.hr-card,
.chart-card,
.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.question-card,
.forced-card,
.ranking-card {
  padding: 18px;
}

.question-card h3,
.forced-card h3,
.ranking-card h3 {
  font-size: 18px;
  line-height: 1.55;
}

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

.option-btn {
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  text-align: left;
  line-height: 1.5;
}

.option-btn:hover,
.option-btn.selected {
  border-color: var(--teal);
  background: rgba(36, 184, 176, 0.11);
}

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

.word-choice {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--wash);
}

.word-choice strong {
  min-height: 42px;
  line-height: 1.45;
}

.word-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.mini-btn.most.active {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: rgba(36, 184, 176, 0.14);
}

.mini-btn.least.active {
  border-color: var(--orange);
  color: #94600b;
  background: rgba(243, 170, 38, 0.16);
}

.ranking-items {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: center;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  padding: 12px;
  font-weight: 700;
}

.rank-row span {
  line-height: 1.55;
}

.rank-row select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  padding: 8px 10px;
  font: inherit;
}

.loading-card {
  display: grid;
  justify-items: center;
  min-height: 380px;
  align-content: center;
  text-align: center;
}

.scanner {
  width: 140px;
  height: 140px;
  margin-bottom: 28px;
  border: 12px solid #e8f3f1;
  border-top-color: var(--teal);
  border-right-color: var(--orange);
  border-radius: 50%;
  animation: scan 1.2s linear infinite;
}

.loading-progress {
  width: min(420px, 100%);
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eff2;
  box-shadow: inset 0 0 0 1px rgba(223, 232, 238, 0.9);
}

.loading-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 0.22s ease;
}

.loading-percent {
  display: block;
  margin-top: 10px;
  color: var(--teal-dark);
  font-size: 18px;
}

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

.report-panel {
  padding: 0;
  overflow: hidden;
}

.report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
  color: white;
  background:
    linear-gradient(120deg, rgba(20, 34, 46, 0.95), rgba(28, 75, 78, 0.9)),
    linear-gradient(90deg, var(--teal), var(--blue));
}

.report-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 42px);
}

.report-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.report-result {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.report-score {
  display: grid;
  width: 142px;
  height: 142px;
  flex: 0 0 142px;
  place-items: center;
  align-content: center;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--teal);
  border-right-color: var(--orange);
  border-radius: 50%;
}

.report-score span {
  font-size: 44px;
  font-weight: 900;
}

.fit-level-card {
  width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  padding: 16px;
  backdrop-filter: blur(8px);
}

.fit-level-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.fit-level-card strong {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 24px;
  line-height: 1.2;
}

.fit-level-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.report-tabs {
  display: flex;
  gap: 10px;
  padding: 18px clamp(18px, 4vw, 42px) 0;
}

.tab-btn {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
}

.tab-btn.active {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.report-view {
  display: none;
  padding: 22px clamp(18px, 4vw, 42px) 36px;
}

.report-view.active {
  display: block;
}

.overview-grid,
.hr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-bottom: 22px;
}

.chart-card,
.insight-card,
.hr-card,
.resume-profile-card,
.enterprise-advice-card {
  padding: 18px;
}

#radarChart text {
  font-family: "STZhongsong", "华文中宋", "Songti SC", "SimSun", serif;
}

#radarChart {
  display: block;
  width: 100%;
  min-height: 360px;
  margin: 4px auto 0;
}

.radar-card #radarChart {
  max-width: 560px;
}

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.radar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--wash);
  font-size: 13px;
  font-weight: 800;
}

.radar-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.module-snapshot {
  display: grid;
  gap: 12px;
}

.snapshot-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  padding: 14px;
}

.snapshot-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.snapshot-item strong {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 18px;
}

.snapshot-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  padding: 9px 12px;
}

.insight-card ul,
.hr-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 14px;
}

.section-title p {
  color: var(--muted);
}

.inline-title {
  margin-top: 0;
}

.resume-profile-card {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.enterprise-advice-card {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

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

.enterprise-advice-item {
  min-height: 182px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  padding: 16px;
}

.enterprise-advice-item h4 {
  margin: 0 0 12px;
  font-size: 17px;
}

.enterprise-advice-item ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.enterprise-advice-item li + li {
  margin-top: 8px;
}

.report-note-card {
  margin-top: 22px;
  border: 1px solid rgba(243, 170, 38, 0.35);
  border-radius: 8px;
  background: rgba(243, 170, 38, 0.08);
  padding: 18px;
}

.report-note-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.report-note-list li::marker {
  color: var(--orange);
}

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

.resume-profile-grid article {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  padding: 16px;
}

.resume-profile-grid h4 {
  margin: 0 0 12px;
  font-size: 17px;
}

.resume-items {
  display: grid;
  gap: 10px;
}

.resume-item {
  border-left: 4px solid var(--teal);
  padding: 9px 10px;
  border-radius: 0 8px 8px 0;
  background: white;
}

.resume-item strong {
  display: block;
  margin-bottom: 4px;
}

.resume-item span,
.resume-empty {
  color: var(--muted);
  line-height: 1.6;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.skill-chip {
  padding: 9px 12px;
  border: 1px solid rgba(36, 184, 176, 0.3);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(36, 184, 176, 0.1);
  font-weight: 800;
}

.module-card {
  padding: 18px;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.module-score {
  min-width: 70px;
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  text-align: center;
  font-weight: 900;
}

.score-source {
  margin: 0 0 18px;
  border: 1px solid rgba(223, 232, 238, 0.95);
  border-radius: 8px;
  background: var(--wash);
  padding: 14px;
}

.score-source-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.score-source-title strong {
  font-size: 16px;
}

.score-source-title span {
  color: var(--teal-dark);
  font-weight: 900;
  white-space: nowrap;
}

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

.source-row {
  display: grid;
  gap: 8px;
}

.source-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.source-label b {
  color: var(--ink);
}

.source-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8ee;
}

.source-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.subtrait-list {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 82px 1fr 40px;
  align-items: center;
  gap: 10px;
}

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

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.bar-track span.low {
  background: var(--orange);
}

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

.explain-item {
  border-left: 4px solid var(--teal);
  padding-left: 12px;
}

.explain-item.low {
  border-left-color: var(--orange);
}

.explain-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.explain-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.match-card {
  grid-row: span 2;
}

.match-meter {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.match-meter span {
  font-size: 48px;
  font-weight: 900;
  color: var(--teal-dark);
}

.match-meter div {
  height: 12px;
  border-radius: 999px;
  background: #edf1f3;
}

.match-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 0.4s ease;
}

.ai-note {
  margin: 10px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  color: #73500f;
  background: rgba(243, 170, 38, 0.12);
  line-height: 1.7;
}

.report-actions {
  padding: 0 clamp(18px, 4vw, 42px) 34px;
}

.invalid {
  outline: 2px solid rgba(221, 107, 114, 0.45);
}

@media (max-width: 860px) {
  .topbar,
  .report-hero,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-result {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .fit-level-card {
    width: min(100%, 320px);
  }

  .intro-grid,
  .form-grid,
  .overview-grid,
  .hr-grid,
  .resume-profile-grid,
  .enterprise-advice-grid,
  .subtrait-list {
    grid-template-columns: 1fr;
  }

  .options-grid,
  .forced-words,
  .source-bars,
  .explain-grid {
    grid-template-columns: 1fr;
  }

  .score-source-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .status-pill {
    white-space: normal;
  }

  .visual-board {
    min-height: 330px;
  }
}

@media print {
  body {
    background: white;
  }

  .topbar,
  .report-tabs,
  .report-actions {
    display: none;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .step-panel {
    box-shadow: none;
  }
}
