/* ============================================================
   答题页（从 wechat_miniapp/pages/quiz 原样移植，rpx→px 2:1）
   ============================================================ */
.quiz-wrap {
  min-height: 100vh; padding: 12px 12px 90px; background: #F7F4EE; box-sizing: border-box;
}
.quiz-loading, .quiz-errbox { padding: 60px 0; text-align: center; font-size: 12.5px; color: #8A93A0; }

/* 头部深墨蓝卡 */
.quiz-hero {
  position: relative; overflow: hidden; margin-bottom: 11px; padding: 18px 16px 19px;
  border-radius: 8px;
  background: linear-gradient(165deg,#0B1120 0%,#131C31 54%,#1E2740 100%);
  box-shadow: 0 9px 22px rgba(11,17,32,.16);
}
.quiz-hero-glow {
  position: absolute; top: -75px; right: -65px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,166,107,.24) 0%, rgba(201,166,107,0) 70%);
}
.quiz-eyebrow { position: relative; font-size: 9px; letter-spacing: 2px; color: #C9A66B; }
.quiz-title {
  position: relative; margin-top: 7px; font-size: 18px; line-height: 1.4;
  font-weight: 700; letter-spacing: 1px; color: #fff;
}
.quiz-intro { position: relative; margin-top: 6px; font-size: 11px; line-height: 1.8; color: rgba(255,255,255,.55); }

/* 提示 */
.notice {
  margin-bottom: 8px; padding: 10px 11px; font-size: 10.5px; line-height: 1.8;
  color: #7A6033; background: #FAF4E6; border: 1px solid #EEDFC0;
  border-left: 2px solid #C9A66B; border-radius: 4px;
}
.notice.warn { color: #A6402F; background: #FDF4F1; border-color: #F0D6CF; border-left-color: #D64545; }

/* 进度 */
.progress-wrap { margin-bottom: 11px; padding: 0 2px; }
.mp-progress { height: 4px; overflow: hidden; background: #E9E2D6; border-radius: 999px; }
.mp-progress-in {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg,#A9793A,#C9A66B 55%,#F2E0BA);
  transition: width .2s;
}
.progress-text {
  display: flex; justify-content: space-between; margin-top: 5px;
  font-size: 10px; letter-spacing: .5px; color: #8A93A0;
}

/* 题目卡 */
.q-card {
  margin-bottom: 10px; padding: 17px 14px 13px; background: #fff;
  border: 1px solid rgba(201,166,107,.22); border-radius: 8px;
  box-shadow: 0 6px 16px rgba(20,26,38,.06);
}
.q-title { margin-bottom: 13px; font-size: 15.5px; line-height: 1.7; color: #141A26; }
.q-n { margin-right: 5px; font-weight: 700; color: #B38644; font-family: Georgia,"Times New Roman",serif; }

/* 选项 */
.opt {
  display: flex; align-items: center; gap: 9px; margin-bottom: 8px;
  padding: 13px 12px; background: #FDFBF7; border: 1px solid #E9E3D8;
  border-radius: 4px; transition: all .15s; cursor: pointer;
}
.opt.checked {
  border-color: #C9A66B; background: #F7EDD9;
  box-shadow: 0 4px 10px rgba(201,166,107,.12);
}
.radio {
  width: 17px; height: 17px; flex-shrink: 0; box-sizing: border-box;
  border: 1px solid #CFC6B6; border-radius: 50%;
}
.radio.on { border-color: #B38644; background: radial-gradient(#B38644 42%, #fff 48%); }
.opt-label { font-size: 13px; line-height: 1.7; color: #3A4250; }

/* 题目下方的操作按钮（不再固定到底部，改为跟在题目卡下面） */
.submit-bar {
  display: flex; gap: 9px;
  margin: 12px 0 4px;
  padding: 0;
  background: transparent; border: 0;
}
.submit-bar button {
  flex: 1; height: 42px; border-radius: 6px; font-size: 13.5px; font-weight: 700;
  letter-spacing: 1px; border: 0; cursor: pointer;
}
.btn-prev {
  flex: 0 0 96px !important; color: #8A6A33; background: #FAF7F0;
  border: 1px solid rgba(201,166,107,.45) !important;
}
.btn-prev[disabled] { opacity: .45; }
.btn-next {
  color: #2A1F0E;
  background: linear-gradient(135deg,#F2E0BA 0%,#C9A66B 55%,#A9793A 100%);
  box-shadow: 0 6px 14px rgba(201,166,107,.24);
}
.btn-finish {
  color: #F2E0BA;
  background: linear-gradient(135deg,#1B2438,#0B1120);
  box-shadow: 0 6px 14px rgba(11,17,32,.22);
}
.btn-finish[disabled] { opacity: .55; box-shadow: none; }

/* ==================== 结果生成中（与小程序一致：金环旋转 + 1%→100%） ==================== */
.gen-wrap {
  position: relative; overflow: hidden; margin-top: 5px; padding: 45px 15px 40px;
  border-radius: 8px; text-align: center;
  background: linear-gradient(165deg,#0B1120 0%,#131C31 54%,#1E2740 100%);
  box-shadow: 0 9px 22px rgba(11,17,32,.18);
}
.gen-ring {
  width: 90px; height: 90px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(#F2E0BA, #C9A66B, #A9793A, #F2E0BA);
  animation: gen-spin 2s linear infinite;
}
.gen-ring-inner {
  width: 71px; height: 71px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #F3E6CB; background: #131C31;
}
@keyframes gen-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.gen-title { font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.gen-sub { margin-top: 6px; font-size: 11px; line-height: 1.7; color: rgba(255,255,255,.52); }

.gen-progress-box { margin: 26px auto 0; max-width: 260px; }
.gen-pct {
  margin-bottom: 10px; font-size: 32px; font-weight: 700; color: #F3E6CB;
  font-family: Georgia,"Times New Roman",serif;
}
.gen-progress { height: 6px; overflow: hidden; background: rgba(255,255,255,.10); border-radius: 999px; }
.gen-progress-in {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg,#A9793A,#C9A66B 55%,#F2E0BA);
  transition: width .2s linear;
}
.gen-tip { margin-top: 14px; font-size: 10.5px; letter-spacing: 1px; color: rgba(255,255,255,.36); }

/* 电脑端 */
@media (min-width: 760px) {
  .quiz-wrap { max-width: 780px; margin: 0 auto; padding: 20px 20px 100px; }
}
