/* ===== quiz.css ===== 通用题库样式（与站点变量配合） */
.qz { margin: 1.5rem 0 2rem; }
.qz-panel { border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.25rem; background: var(--entry); }
.qz-hide { display: none !important; }
.qz-title { font-size: 1.15rem; margin: 0 0 .5rem; }
.qz-sub { font-size: .92rem; color: var(--secondary); line-height: 1.7; margin: 0 0 1.2rem; }

.qz-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.qz-label { font-size: .82rem; color: var(--secondary); letter-spacing: .05em; min-width: 2.6rem; }
.qz-chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.qz-chip { font: inherit; font-size: .88rem; padding: .4rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--content); cursor: pointer; transition: all .15s; }
.qz-chip:hover { border-color: var(--primary); }
.qz-chip.on { background: var(--primary); color: var(--theme); border-color: var(--primary); font-weight: 600; }

.qz-actions { margin-top: 1.2rem; }
.qz-btn { font: inherit; font-size: .95rem; font-weight: 600; padding: .65rem 1.4rem; border: none; border-radius: 7px; background: var(--primary); color: var(--theme); cursor: pointer; transition: opacity .15s; }
.qz-btn:hover { opacity: .85; }
.qz-btn-2 { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.qz-best { font-size: .86rem; color: var(--secondary); margin: .8rem 0 0; }
.qz-note { font-size: .84rem; color: var(--secondary); line-height: 1.7; margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px dashed var(--border); }

.qz-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: .9rem; }
.qz-bar-fill { height: 100%; width: 0; background: var(--primary); transition: width .25s; }
.qz-stats { display: flex; gap: 1.1rem; font-size: .84rem; color: var(--secondary); margin-bottom: 1.3rem; }
.qz-streak { color: var(--primary); font-weight: 600; }

.qz-prompt { font-size: 1.16rem; font-weight: 650; line-height: 1.55; margin: 0 0 1.1rem; padding: 1.1rem 1.15rem; border-radius: 9px; background: var(--theme); border: 1px solid var(--border); }
.qz-prompt code { font-size: .95em; padding: .1rem .4rem; border-radius: 4px; background: var(--code-bg); }

.qz-options { display: grid; gap: .6rem; }
.qz-option { display: flex; align-items: flex-start; gap: .75rem; font: inherit; font-size: .95rem; text-align: left; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--theme); color: var(--content); cursor: pointer; transition: all .15s; line-height: 1.55; }
.qz-option:hover { border-color: var(--primary); }
.qz-option.ok { border-color: #1a9e5c; background: rgba(26,158,92,.1); }
.qz-option.no { border-color: #d9534f; background: rgba(217,83,79,.1); }
.qz-num { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; line-height: 1.35rem; text-align: center; font-size: .76rem; border-radius: 4px; background: var(--border); color: var(--secondary); font-weight: 600; }

.qz-feedback { font-size: .92rem; line-height: 1.7; min-height: 2.4rem; margin-top: .9rem; }
.qz-feedback.ok { color: #1a9e5c; font-weight: 600; }
.qz-feedback.no { color: #d9534f; }

.qz-foot { display: flex; gap: 1.2rem; justify-content: center; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.qz-link { font: inherit; font-size: .86rem; color: var(--secondary); background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.qz-link:hover { color: var(--primary); }

.qz-done-t { font-size: 1.3rem; margin: 0 0 1rem; }
.qz-final { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.qz-final div { text-align: center; }
.qz-final b { display: block; font-size: 1.9rem; line-height: 1.2; }
.qz-final span { font-size: .82rem; color: var(--secondary); }
.qz-wrongs { margin-bottom: 1.4rem; }
.qz-wrongs h4 { font-size: .9rem; margin: 0 0 .6rem; color: var(--secondary); font-weight: 600; }
.qz-wrongs ul { list-style: none; padding: 0; margin: 0; }
.qz-wrongs li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.qz-wrongs li:last-child { border-bottom: none; }
.qz-wrongs code { font-size: .84rem; padding: .1rem .4rem; border-radius: 3px; background: var(--code-bg); white-space: nowrap; }
.qz-perfect { font-size: .92rem; color: var(--secondary); margin: 0 0 1rem; }

@media (max-width: 640px) {
  .qz-prompt { font-size: 1.06rem; padding: .9rem }
  .qz-wrongs li { flex-direction: column; gap: .2rem; }
  .qz-final { gap: 1.1rem; }
  .qz-final b { font-size: 1.5rem; }
}
