/* ============================================================
   红色征程 · 薪火答题样式 quiz.css
   ============================================================ */

/* ---------- 开始卡 ---------- */
.quiz-section { padding-top: 40px; }
.qz-start-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 44px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.qz-flame { font-size: 44px; display: block; margin-bottom: 6px; }
.qz-start-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--red-dark);
  letter-spacing: 4px;
}
.qz-start-tip {
  font-size: 14px;
  color: var(--ink-light);
  margin-top: 10px;
  letter-spacing: 1px;
}
.qz-rules {
  text-align: left;
  margin: 30px 0 32px;
  display: grid;
  gap: 16px;
}
.qz-rules li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.qr-num {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 36px;
  text-align: center;
}
.qz-rules strong {
  font-size: 16px;
  color: var(--red-dark);
  letter-spacing: 2px;
}
.qz-rules p {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 2px;
}
.qz-start-actions { margin-top: 4px; }
.qz-big-btn {
  font-size: 18px;
  padding: 14px 52px;
}
.qz-start-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 1px;
}

/* ---------- 答题卡 ---------- */
.qz-play-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 36px 34px;
  box-shadow: var(--shadow-lg);
}
.qz-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.qz-count, .qz-score {
  flex: none;
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 1px;
}
.qz-score { color: var(--red); font-weight: bold; }
.qz-progress {
  flex: 1;
  height: 8px;
  background: var(--paper-2);
  border-radius: 99px;
  overflow: hidden;
}
.qz-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 99px;
  transition: width .5s ease;
}
.qz-question {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 1px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.qz-options { display: grid; gap: 14px; }
.qz-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 1px;
  transition: all .25s;
}
.qz-opt:not(:disabled):hover {
  border-color: var(--red);
  background: rgba(199, 0, 11, .05);
  transform: translateX(4px);
}
.qo-badge {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--red-dark);
  font-weight: bold;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  transition: all .25s;
}
.qz-opt:not(:disabled):hover .qo-badge {
  background: var(--red);
  color: #fff;
}
.qz-opt-right {
  border-color: #1b8a4a;
  background: #e8f5ec;
}
.qz-opt-right .qo-badge { background: #1b8a4a; color: #fff; }
.qz-opt-wrong {
  border-color: #b03030;
  background: #fbecec;
}
.qz-opt-wrong .qo-badge { background: #b03030; color: #fff; }
.qz-opt-dim { opacity: .55; }
.qz-opt:disabled { cursor: default; }

/* ---------- 反馈区 ---------- */
.qz-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--paper-2);
  border-left: 4px solid var(--gold);
}
.qz-verdict { font-size: 16px; letter-spacing: 2px; margin-bottom: 6px; }
.qz-verdict-right { color: #1b8a4a; font-weight: bold; }
.qz-verdict-wrong { color: var(--red); font-weight: bold; }
.qz-explain { font-size: 13.5px; color: var(--ink); line-height: 1.9; }
.qz-next-row { margin-top: 22px; text-align: right; }

/* ---------- 结算卡 ---------- */
.qz-result-card {
  max-width: 640px;
  margin: 0 auto 34px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(109, 0, 5, .94), rgba(154, 0, 8, .88)),
    url("../images/gallery/star.jpg") center/cover no-repeat;
  border-radius: 18px;
  padding: 44px 30px 38px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.qz-r-eyebrow {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.qz-r-score strong {
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1.1;
  color: var(--gold-light);
  text-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.qz-r-score span {
  font-size: 20px;
  color: rgba(255, 255, 255, .8);
  margin-left: 6px;
}
.qz-r-title {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 6px;
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 8px 34px;
  background: rgba(217, 160, 54, .14);
}
.qz-r-comment {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 2;
  color: rgba(255, 255, 255, .92);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.qz-r-stats {
  display: flex;
  justify-content: center;
  gap: 46px;
  margin-top: 24px;
}
.qrs-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold-light);
}
.qrs-item span {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .8);
}

/* ---------- 错题回顾 ---------- */
.qz-wrong-card {
  max-width: 760px;
  margin: 0 auto 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: var(--shadow);
}
.qz-wrong-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--red-dark);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.qz-wrong-item {
  padding: 16px 4px;
  border-bottom: 1px dashed var(--line);
}
.qz-wrong-item:last-child { border-bottom: 0; }
.qw-q {
  font-size: 15px;
  color: var(--ink);
  font-weight: bold;
  margin-bottom: 8px;
}
.qw-a { font-size: 13.5px; color: var(--ink-light); }
.qw-a em { font-style: normal; }
.qw-mine { color: #b03030; }
.qw-ans { color: #1b8a4a; font-weight: bold; }
.qw-e {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.9;
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  padding: 8px 14px;
  border-radius: 0 8px 8px 0;
}

/* ---------- 传承卡生成 ---------- */
.qz-card-maker {
  max-width: 760px;
  margin: 0 auto 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.qz-card-maker h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--red-dark);
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.qcm-tip {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 18px;
}
.qcm-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
#qcmName {
  width: min(320px, 86vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 11px 22px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
#qcmName:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(199, 0, 11, .12);
}

/* 传承卡本体 */
.qz-legacy-card { margin-top: 28px; }
.qlc-inner {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 160, 54, .25), transparent 46%),
    linear-gradient(160deg, var(--red) 0%, var(--red-dark) 58%, var(--red-deep) 100%);
  border: 2px solid var(--gold);
  outline: 1px solid rgba(243, 217, 164, .55);
  outline-offset: 6px;
  border-radius: 16px;
  padding: 38px 30px 30px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: cardIn .5s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.qlc-star {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
}
.qlc-star svg { width: 100%; height: 100%; fill: var(--gold-light); filter: drop-shadow(0 0 8px rgba(243, 217, 164, .6)); }
.qlc-eyebrow {
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--gold-light);
  text-align: center;
}
.qlc-name {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 8px;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .35);
}
.qlc-title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 4px;
  color: var(--gold-light);
  text-align: center;
}
.qlc-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 14px 0 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .85);
  letter-spacing: 1px;
}
.qlc-quote {
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 1.5px;
  color: #fff;
  border-top: 1px dashed rgba(243, 217, 164, .45);
  border-bottom: 1px dashed rgba(243, 217, 164, .45);
  padding: 12px 8px;
}
.qlc-seal {
  position: absolute;
  right: 18px; bottom: 16px;
  width: 60px; height: 60px;
  border: 2px solid var(--gold-light);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-8deg);
  opacity: .92;
}
.qlc-actions { margin-top: 16px; }
.qlc-save-tip {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 1px;
}

/* ---------- 再来一局 ---------- */
.qz-replay {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .qz-start-card, .qz-play-card, .qz-wrong-card, .qz-card-maker { padding: 24px 18px; }
  .qz-question { font-size: 18px; }
  .qz-r-score strong { font-size: 64px; }
  .qlc-name { font-size: 26px; letter-spacing: 5px; }
  .qz-progress-row { flex-wrap: wrap; }
  .qz-r-stats { gap: 30px; }
}
