:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --line: #dce2ec;
  --text: #172033;
  --muted: #65738a;
  --accent: #1769e0;
  --accent-dark: #0f55b6;
  --soft: #eef5ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.durationPill {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f3f8ff;
}

.durationPill strong {
  color: #175da9;
  font-size: 14px;
}

.durationPill span {
  font-size: 12px;
}

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

h1 {
  font-size: 22px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 20px;
  line-height: 1.45;
}

p,
span,
a,
small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.syncHint {
  color: var(--accent);
}

a {
  text-decoration: none;
}

.clientApp {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  min-height: calc(100vh - 76px);
}

.steps {
  align-self: start;
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: left;
  color: var(--text);
}

.step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}

.step strong {
  font-size: 14px;
}

.step.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08);
}

.step:disabled {
  opacity: 0.55;
}

.workspace {
  min-width: 0;
}

.view {
  display: none;
  min-height: calc(100vh - 118px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.view.active {
  display: block;
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.sectionHead p {
  margin-top: 6px;
  max-width: 760px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #33415c;
  font-size: 13px;
}

.wide {
  grid-column: 1 / -1;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

button.primary:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.actionBar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.actionBar span {
  margin-right: auto;
}

.questionBox {
  padding: 28px;
}

.scaleOptions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.scenarioInstruction {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.scaleOption {
  display: grid;
  grid-template-columns: 22px 32px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

button.scaleOption {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.scenarioOption {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 64px;
}

.scaleOption input {
  margin: 0;
}

.scaleOption:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
}

.scaleOption.selected {
  border-color: var(--accent);
  background: var(--soft);
}

.scaleOption span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}

.scaleOption strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
}

#interviewHint {
  margin-top: 10px;
}

.assistantTools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.coachBox {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #b8d5ff;
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
}

.coachBox strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.coachBox p {
  margin: 0 0 10px;
}

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

.coachBox li {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}

#interviewAnswer {
  margin-top: 18px;
  min-height: 180px;
}

.summaryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcff;
}

.metric span {
  display: block;
  margin-bottom: 8px;
}

.metric strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.industryList {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.industryItem {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 68px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}

.industryItem strong,
.industryItem small {
  display: block;
}

.industryItem small {
  margin-top: 3px;
}

.score {
  text-align: right;
  color: var(--accent);
  font-weight: 700;
}

pre {
  margin: 0 16px 16px;
  max-height: 620px;
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.6;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

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

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

  .profileGrid,
  .summaryGrid {
    grid-template-columns: 1fr;
  }
}
.informationGaps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.gapHeader,
.informationGaps .gapItem {
  padding: 14px 16px;
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  background: #f7fafc;
}

.informationGaps .gapItem.blocking {
  border-left: 4px solid #c7832f;
  background: #fffaf1;
}

.informationGaps .gapItem.recommended {
  border-left: 4px solid #6c8fb8;
}

.informationGaps p {
  margin: 6px 0 10px;
}
