:root {
  --bg: #0e0e12;
  --surface: #18181f;
  --surface2: #222230;
  --gold: #c9a96e;
  --gold-soft: rgba(201,169,110,.16);
  --text: #f0ead8;
  --text-dim: #9e9480;
  --text-faint: #55504a;
  --border: rgba(201,169,110,.14);
  --border-hover: rgba(201,169,110,.42);
  --radius: 16px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: 'Noto Serif SC', serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 屏幕切换 */
.screen { display: none; min-height: 100vh; padding: 40px 22px; }
.screen.active { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#screen-quiz.active, #screen-result.active { justify-content: flex-start; }

/* 背景微光 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(201,169,110,.06), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(201,169,110,.04), transparent 70%);
}

/* ---------- 开场 ---------- */
.intro { text-align: center; max-width: 480px; animation: fadeUp .8s ease; }
.intro-logo { font-size: 34px; color: var(--gold); margin-bottom: 20px; opacity: .85; }
.intro-eyebrow {
  font-family: 'Cinzel', serif; letter-spacing: .34em; font-size: 12px;
  color: var(--gold); margin-bottom: 26px;
}
.intro-title { font-weight: 700; font-size: 34px; line-height: 1.4; margin-bottom: 22px; }
.intro-sub { color: var(--text-dim); font-size: 15px; line-height: 2; margin-bottom: 40px; font-weight: 300; }
.intro-note { margin-top: 26px; font-size: 12px; color: var(--text-faint); letter-spacing: .04em; }

.btn-primary {
  font-family: inherit; font-size: 16px; color: var(--gold);
  background: var(--gold-soft); border: 1px solid var(--border-hover);
  padding: 15px 52px; border-radius: 40px; cursor: pointer;
  letter-spacing: .1em; transition: all .3s;
}
.btn-primary:hover { background: rgba(201,169,110,.24); transform: translateY(-2px); }

/* ---------- 选国别 ---------- */
.track { text-align: center; max-width: 640px; animation: fadeUp .7s ease; }
.track-eyebrow {
  font-family: 'Cinzel', serif; letter-spacing: .3em; font-size: 12px;
  color: var(--gold); margin-bottom: 18px;
}
.track-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.track-sub { color: var(--text-dim); font-size: 14px; line-height: 1.9; margin-bottom: 40px; font-weight: 300; }
.track-cards { display: flex; flex-direction: column; gap: 16px; }
.track-card {
  font-family: inherit; text-align: center; cursor: pointer; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 22px; transition: all .25s;
}
.track-card:hover { border-color: var(--border-hover); background: var(--surface2); transform: translateY(-3px); }
.track-flag { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.track-name { font-size: 20px; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.track-desc { font-size: 13px; color: var(--text-dim); line-height: 1.8; font-weight: 300; }
.track-card-both { border-style: dashed; }
@media (min-width: 620px) {
  .track-cards { flex-direction: row; }
  .track-card { flex: 1; }
}

/* ---------- 答题 ---------- */
#screen-quiz { max-width: 560px; margin: 0 auto; width: 100%; }
.quiz-top { width: 100%; max-width: 520px; margin: 10px auto 40px; }
.quiz-count {
  font-family: 'Cinzel', serif; font-size: 13px; color: var(--gold);
  letter-spacing: .2em; text-align: center; margin-bottom: 14px;
}
.quiz-barwrap { height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.quiz-bar { height: 100%; width: 0; background: var(--gold); transition: width .4s ease; }

.quiz-body { width: 100%; max-width: 520px; opacity: 0; transform: translateY(14px); transition: all .4s ease; }
.quiz-body.in { opacity: 1; transform: none; }
.q-text { font-size: 23px; font-weight: 600; line-height: 1.6; text-align: center; margin-bottom: 40px; }
.q-options { display: flex; flex-direction: column; gap: 14px; }
.q-option {
  display: flex; align-items: center; gap: 16px; text-align: left;
  font-family: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 18px 22px; border-radius: var(--radius); cursor: pointer;
  transition: all .22s;
}
.q-option:hover { border-color: var(--border-hover); background: var(--surface2); transform: translateX(4px); }
.q-option.picked { border-color: var(--gold); background: var(--gold-soft); }
.q-emoji { font-size: 24px; flex-shrink: 0; }
.q-label { line-height: 1.5; }

/* ---------- 结果 ---------- */
.result { width: 100%; max-width: 540px; margin: 0 auto; animation: fadeUp .7s ease; }
.r-hero { text-align: center; padding: 20px 0 10px; }
.r-eyebrow {
  font-family: 'Cinzel', serif; letter-spacing: .28em; font-size: 12px;
  color: var(--gold); margin-bottom: 18px;
}
.r-emoji { font-size: 58px; line-height: 1; margin-bottom: 14px; }
.r-persona { color: var(--gold); font-size: 17px; letter-spacing: .06em; margin-bottom: 6px; }
.r-name { font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.r-en { font-family: 'Cinzel', serif; color: var(--text-dim); font-size: 13px; letter-spacing: .04em; }
.r-match { margin: 20px 0; font-size: 14px; color: var(--text-dim); }
.r-match b { color: var(--gold); font-size: 19px; }
.r-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.r-tags span {
  font-size: 12px; color: var(--text-dim); background: var(--surface);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 20px;
}
.r-blurb {
  text-align: left; line-height: 2; font-size: 15px; color: var(--text);
  font-weight: 300; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
}

/* 维度条 */
.r-axes { margin: 36px 0; display: flex; flex-direction: column; gap: 22px; }
.axis-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.axis-head b { font-size: 14px; color: var(--text); }
.axis-head span { font-size: 11px; color: var(--text-faint); letter-spacing: .04em; }
.axis-track { position: relative; height: 3px; background: var(--border); border-radius: 3px; }
.axis-school, .axis-you {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
}
.axis-school { background: transparent; border: 1.5px solid var(--text-faint); }
.axis-you { background: var(--gold); box-shadow: 0 0 10px rgba(201,169,110,.6); }

/* 备选 */
.r-alts { margin: 30px 0 10px; }
.r-alts-title {
  font-family: 'Cinzel', serif; letter-spacing: .22em; font-size: 12px;
  color: var(--gold); text-align: center; margin-bottom: 16px;
}
.r-alt {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px;
}
.r-alt-emoji { font-size: 24px; }
.r-alt-name { flex: 1; font-size: 16px; }
.r-alt-name em { display: block; font-style: normal; font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.r-alt-pct { font-family: 'Cinzel', serif; color: var(--gold); font-size: 15px; }

.r-actions { text-align: center; margin: 34px 0 14px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn-share { font-size: 15px; padding: 14px 40px; }
.btn-share:disabled { opacity: .5; cursor: default; }
.btn-ghost {
  font-family: inherit; font-size: 15px; color: var(--text-dim);
  background: none; border: 1px solid var(--border); padding: 12px 34px;
  border-radius: 30px; cursor: pointer; transition: all .25s;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--border-hover); }
.r-foot { text-align: center; font-size: 12px; color: var(--text-faint); line-height: 1.8; margin-top: 10px; }

/* ---------- 分享卡（截图用，固定宽度） ---------- */
.share-card {
  width: 400px; box-sizing: border-box; padding: 34px 30px 26px;
  background: linear-gradient(170deg, #16161d 0%, #0e0e12 60%);
  border: 1px solid rgba(201,169,110,.25); color: #f0ead8;
  font-family: 'Noto Serif SC', serif; text-align: center;
}
.sc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.sc-brand { font-family: 'Cinzel', serif; color: #c9a96e; font-size: 14px; letter-spacing: .1em; }
.sc-track { font-size: 12px; color: #9e9480; border: 1px solid rgba(201,169,110,.3); padding: 3px 10px; border-radius: 12px; }
.sc-emoji { font-size: 54px; line-height: 1; margin-bottom: 12px; }
.sc-persona { color: #c9a96e; font-size: 16px; letter-spacing: .06em; margin-bottom: 6px; }
.sc-name { font-size: 30px; font-weight: 700; margin-bottom: 4px; }
.sc-en { font-family: 'Cinzel', serif; color: #9e9480; font-size: 12px; margin-bottom: 16px; }
.sc-match { font-size: 13px; color: #9e9480; margin-bottom: 16px; }
.sc-match b { color: #c9a96e; font-size: 18px; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 20px; }
.sc-tags span { font-size: 11px; color: #9e9480; border: 1px solid rgba(201,169,110,.2); padding: 4px 11px; border-radius: 16px; }
.sc-blurb { text-align: left; font-size: 13px; line-height: 1.95; font-weight: 300; color: #e6dfce; margin-bottom: 22px; }
.sc-axes { display: flex; flex-direction: column; gap: 13px; margin-bottom: 20px; }
.sc-axis { display: flex; align-items: center; gap: 12px; }
.sc-axis-name { width: 64px; text-align: right; font-size: 12px; color: #9e9480; flex-shrink: 0; }
.sc-axis-track { position: relative; flex: 1; height: 3px; background: rgba(201,169,110,.14); border-radius: 3px; }
.sc-axis-school, .sc-axis-you { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; margin: -5.5px 0 0 -5.5px; }
.sc-axis-school { border: 1.5px solid #55504a; box-sizing: border-box; }
.sc-axis-you { background: #c9a96e; }
.sc-alts { font-size: 12px; color: #9e9480; line-height: 1.7; margin-bottom: 18px; }
.sc-foot {
  font-size: 12px; color: #c9a96e; letter-spacing: .04em;
  border-top: 1px solid rgba(201,169,110,.15); padding-top: 16px;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .intro-title { font-size: 28px; }
  .q-text { font-size: 20px; }
  .r-name { font-size: 27px; }
}
