/* ============================================================
   测测你是哪个二次元角色 · 样式
   配色基准（沿用项目配色速查）：
   主文字 #2D2D2D / 背景 #FAFAFA / 强调 #4A90D9
   角色代表色由 JS 通过 CSS 变量 --acc / --acc-soft 注入
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: #FAFAFA;
  color: #2D2D2D;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 20px 40px;
}

.hidden { display: none !important; }

/* ============ 开始页 ============ */
.start-hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.start-hero h1 {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 1px;
}

.start-sub {
  margin-top: 16px;
  color: #6B6B6B;
  font-size: 15px;
  line-height: 1.8;
}

.btn-primary {
  margin-top: 36px;
  background: #4A90D9;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 56px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s ease, opacity .2s;
}
.btn-primary:active { transform: scale(.96); opacity: .9; }

.start-note {
  margin-top: 20px;
  color: #A0A0A0;
  font-size: 12px;
}

.start-ver {
  margin-top: 8px;
  color: #C8C8C8;
  font-size: 11px;
}

/* ============ 答题页 ============ */
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 10px;
}

.btn-back {
  background: none;
  border: none;
  color: #8A8A8A;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}

#quiz-count { color: #8A8A8A; font-size: 13px; }

.progress {
  height: 4px;
  background: #ECECEC;
  border-radius: 2px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0;
  background: #4A90D9;
  border-radius: 2px;
  transition: width .25s ease;
}

#question-text {
  margin: 32px 0 24px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
}

.options { display: flex; flex-direction: column; gap: 12px; }

.option {
  background: #fff;
  border: 1.5px solid #E6E6E6;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15.5px;
  line-height: 1.5;
  text-align: left;
  color: #2D2D2D;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.option:active { border-color: #4A90D9; background: #F0F7FF; }

/* ============ 结果页 ============ */
.result-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  margin-top: 24px;
  box-shadow: 0 2px 16px rgba(45, 45, 45, .06);
}

.result-head { text-align: center; }

.match-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--acc-soft, #F0F7FF);
  color: var(--acc, #4A90D9);
}

.result-name {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
}

.result-work {
  margin-top: 6px;
  color: #8A8A8A;
  font-size: 14px;
}

.kw-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.kw-chip {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--acc-soft, #F0F7FF);
  color: var(--acc, #4A90D9);
}

.result-dom {
  margin-top: 10px;
  color: #6B6B6B;
  font-size: 13.5px;
}

.quote {
  margin: 22px 0 6px;
  padding: 18px 20px;
  background: #F7F7F7;
  border-left: 3px solid var(--acc, #4A90D9);
  border-radius: 0 12px 12px 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #2D2D2D;
}

.module { margin-top: 30px; }

.module-title {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-num {
  font-size: 12px;
  color: var(--acc, #4A90D9);
  font-weight: 700;
}

.portrait {
  font-size: 15.5px;
  line-height: 1.9;
  color: #3A3A3A;
  text-align: justify;
}

/* 雷达图容器 */
#radar-box {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
}
#radar-box svg { max-width: 320px; width: 100%; height: auto; }

/* 维度分数速览（雷达图的文字版，兼顾无障碍） */
.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.score-cell {
  background: #F7F7F7;
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
}
.score-cell .dim { font-size: 12px; color: #8A8A8A; }
.score-cell .val { font-size: 15px; font-weight: 700; color: #2D2D2D; margin-top: 2px; }

/* 03 共同底色 */
.layer {
  padding: 14px 16px;
  border-radius: 12px;
  background: #FAFAFA;
  margin-bottom: 10px;
}
.layer .layer-title { font-size: 14px; font-weight: 700; }
.layer .layer-title .dim-tag { color: var(--acc, #4A90D9); }
.layer p { margin-top: 6px; font-size: 14px; line-height: 1.8; color: #4A4A4A; }

/* 04 / 05 */
.module-body {
  font-size: 14.5px;
  line-height: 1.85;
  color: #4A4A4A;
  background: #FAFAFA;
  border-radius: 12px;
  padding: 14px 16px;
}

.blind-block, .risk-block, .advice-block {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #4A4A4A;
}
.blind-block { background: #FDF6F0; }
.blind-block .tag, .risk-block .tag, .advice-block .tag {
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  color: #B07A3C;
  margin-bottom: 4px;
}
.risk-block { background: #FBF1F1; }
.risk-block .tag { color: #B45555; }
.advice-block { background: #F0F7FF; }
.advice-block .tag { color: #4A90D9; }

/* 底部操作 */
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0 8px;
}
.result-actions .btn-primary { margin-top: 0; }
.btn-text {
  margin-top: 14px;
  background: none;
  border: none;
  color: #8A8A8A;
  font-size: 14px;
  cursor: pointer;
}
.result-hint { margin-top: 12px; color: #8A8A8A; font-size: 13px; }
