:root {
  --bg: #f5f7fb;
  --card: rgba(255, 255, 255, 0.96);
  --text: #20242c;
  --muted: #6d7480;
  --line: #dde4ee;
  --soft: #eef4f8;
  --accent: #2563eb;
  --accent-dark: #173ea5;
  --coral: #ee735d;
  --green: #34a085;
  --gold: #f0b84f;
  --shadow: 0 22px 58px rgba(35, 52, 78, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(140deg, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(320deg, rgba(52, 160, 133, 0.14), transparent 32%),
    var(--bg);
}

button,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100%, 540px);
  min-height: calc(100vh - 46px);
  margin: 0 auto;
  padding: 28px 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  display: none;
  width: 100%;
}

.screen.is-active {
  display: block;
}

.card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card,
.quiz-card,
.result-card {
  padding: 24px;
}

.hero-card {
  text-align: center;
}

.career-visual {
  position: relative;
  height: 176px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #eef5ff 0%, #fff7ed 54%, #eefaf6 100%);
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(37, 99, 235, 0.22);
  border-radius: 50%;
}

.orbit-a {
  inset: 26px 74px;
}

.orbit-b {
  inset: 54px 42px 18px;
  border-color: rgba(52, 160, 133, 0.24);
}

.center-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  line-height: 1.25;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.node {
  position: absolute;
  min-width: 54px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #26313d;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 20px rgba(58, 75, 100, 0.12);
}

.node-a {
  left: 28px;
  top: 34px;
}

.node-b {
  right: 30px;
  top: 28px;
}

.node-c {
  left: 38px;
  bottom: 28px;
}

.node-d {
  right: 42px;
  bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.16;
  letter-spacing: 0;
}

.subtitle {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.primary-btn,
.secondary-btn,
.option-btn {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

.secondary-btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font-weight: 900;
  background: #fbfdff;
}

.primary-btn:disabled,
.secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.primary-btn:active:not(:disabled),
.secondary-btn:active:not(:disabled),
.option-btn:active {
  transform: scale(0.98);
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.progress-bar {
  height: 9px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f3;
}

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

.question-panel {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.question-panel.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.question-panel h2 {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: 0;
}

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

.option-btn {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  background: #fbfdff;
}

.option-btn span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  font-weight: 900;
  background: #eaf1ff;
}

.option-btn strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.option-btn:hover,
.option-btn.is-selected {
  border-color: rgba(37, 99, 235, 0.48);
  background: #f0f6ff;
  box-shadow: 0 10px 22px rgba(35, 52, 78, 0.1);
}

.option-btn.is-selected span {
  color: #fff;
  background: var(--accent);
}

.nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.result-card {
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(90deg, var(--accent), var(--green), var(--gold), var(--coral));
}

.result-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

#resultTitle {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

.match-row {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #123c92;
  font-weight: 900;
  background: #eaf1ff;
}

.match-row span:first-child {
  font-size: 28px;
}

.result-intro {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.info-block {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.muted-block {
  background: #f7fafc;
}

.action-block {
  background: #fffaf0;
}

.info-block h3,
.alternatives h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 8px 0;
  color: #424a56;
  line-height: 1.58;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  padding: 9px 12px;
  border-radius: 999px;
  color: #26313d;
  font-size: 14px;
  font-weight: 800;
  background: var(--soft);
}

.alternatives {
  margin-top: 18px;
}

.action-row {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.share-text {
  display: none;
  width: 100%;
  min-height: 146px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  line-height: 1.6;
  resize: vertical;
  background: #fbfdff;
}

.share-text.is-visible {
  display: block;
}

.copy-hint {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

footer {
  min-height: 46px;
  padding: 0 16px 18px;
  color: rgba(32, 36, 44, 0.56);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 560px) {
  .app-shell {
    padding-top: 46px;
  }

  .hero-card,
  .quiz-card,
  .result-card {
    padding: 30px;
  }

  h1 {
    font-size: 40px;
  }

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