/* 《中庸》现代心理学语料库 · 专家评价系统 V2
   桌面端：评分矩阵表格横向展示；移动端：自动切换为纵向逐条卡片。 */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --border: #e2e7ec;
  --border-strong: #cfd8e0;
  --text: #1c2b33;
  --text-2: #5a6b76;
  --text-3: #8b9aa5;
  --accent: #1f6f6b;
  --accent-soft: #e6f2f1;
  --accent-strong: #14504d;
  --warn: #b4531a;
  --warn-soft: #fdf1e7;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 43, 51, .06), 0 4px 16px rgba(28, 43, 51, .05);
  --maxw: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; }
p { margin: 0 0 .7em; }
p:last-child { margin-bottom: 0; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 9px; margin-right: auto; min-width: 0; }
.brand-title { font-size: 15px; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-expert {
  font-size: 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid #cfe4e2;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.badge-expert .mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }

/* ---------- 布局 ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 96px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.card + .card { margin-top: 18px; }
.card.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

.lead { color: var(--text-2); }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.nowrap { white-space: nowrap; }

/* ---------- 按钮 ---------- */
button { font: inherit; cursor: pointer; }
.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 14.5px;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--text-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 11px 26px;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); padding: 7px 12px; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-lg { padding: 13px 34px; font-size: 16px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }

/* ---------- 表单 ---------- */
.field { margin-top: 18px; }
.field label.field-label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.input.mono { letter-spacing: .5px; }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.6; }

/* 选择卡（专家类型 / 评价视角） */
.choices { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .choices.two { grid-template-columns: 1fr 1fr; } }
.choice {
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.choice-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; }
.choice-mark {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-strong); flex: none; position: relative;
}
.choice:has(input:checked) .choice-mark { border-color: var(--accent); }
.choice:has(input:checked) .choice-mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}
.choice-desc { color: var(--text-2); font-size: 13.5px; margin-top: 6px; padding-left: 28px; }
.choice-tag {
  font-size: 11.5px; color: var(--accent-strong); background: var(--accent-soft);
  border: 1px solid #cfe4e2; border-radius: 4px; padding: 1px 7px; font-weight: 500;
}

/* ---------- 进度条 ---------- */
.progress-band {
  position: sticky; top: 57px; z-index: 30;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  margin: -24px -20px 20px; padding: 10px 20px 12px;
}
.progress-band-inner { max-width: var(--maxw); margin: 0 auto; }
.progress-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.progress-meta .spacer { margin-left: auto; }
.bar { height: 6px; background: var(--border); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.bar-fill.done { background: #2f9e6f; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #2f9e6f; display: inline-block; margin-right: 5px; vertical-align: middle; }
.dot-live.saving { background: var(--warn); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- 模块标签 ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { border-color: var(--accent); color: var(--accent-strong); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.tab .tab-count { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.tab.active .tab-count { opacity: .95; }
.tab.tab-done:not(.active) { border-color: #b7e0cd; background: #f0faf5; color: #1f6b4a; }

/* ---------- 模块说明 ---------- */
.module-head { margin-bottom: 6px; }
.module-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.module-code {
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--accent); border-radius: 5px; padding: 2px 8px; letter-spacing: .5px;
}
.module-title h2 { font-size: 19px; }
.module-count { font-size: 13px; color: var(--text-3); }
details.doc { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
details.doc > summary {
  cursor: pointer; padding: 11px 16px; font-size: 13.5px; color: var(--accent-strong);
  font-weight: 500; list-style: none; display: flex; align-items: center; gap: 8px;
}
details.doc > summary::-webkit-details-marker { display: none; }
details.doc > summary::before { content: "▸"; font-size: 11px; transition: transform .15s; }
details.doc[open] > summary::before { transform: rotate(90deg); }
details.doc .doc-body { padding: 4px 18px 18px; border-top: 1px solid var(--border); }
.doc-body h4 { font-size: 13.5px; color: var(--text-2); margin: 14px 0 6px; }
.doc-body h4:first-child { margin-top: 14px; }
.doc-body p { font-size: 14px; color: var(--text-2); }
.example-block { background: var(--surface); border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- P 命题 ---------- */
.prop-block { margin-top: 26px; }
.prop-head {
  border-left: 3px solid var(--accent); padding: 2px 0 2px 13px; margin-bottom: 12px;
}
.prop-id { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--accent-strong); font-weight: 600; letter-spacing: .3px; }
.prop-stmt { font-size: 15px; font-weight: 500; margin-top: 2px; }
.prop-hint { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

/* ---------- 评分标准 ---------- */
.scale-legend {
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center;
  font-size: 12.5px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 13px; margin-bottom: 12px;
}
.scale-legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.scale-legend .scale-title { color: var(--text-3); }

/* ---------- 桌面端矩阵表格 ---------- */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
table.matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
table.matrix th, table.matrix td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0; }
table.matrix thead th { background: var(--surface-2); font-weight: 600; font-size: 12.5px; color: var(--text-2); padding: 7px 6px; text-align: center; }
table.matrix thead tr:first-child th { border-bottom: 1px solid var(--border-strong); }
table.matrix thead th.dim-head { color: var(--accent-strong); font-size: 13px; letter-spacing: .2px; }
table.matrix thead th.dim-head + th.dim-head { border-left: 2px solid var(--border-strong); }
table.matrix td.dim-first, table.matrix th.dim-first { border-left: 2px solid var(--border-strong); }
table.matrix th.col-item, table.matrix td.col-item { text-align: left; width: 42%; min-width: 300px; padding: 11px 14px; }
table.matrix th.col-note, table.matrix td.col-note { width: 96px; border-right: none; text-align: center; padding: 8px; }
table.matrix tbody tr:hover td:not(.note-cell) { background: #fbfcfd; }
table.matrix td.rate { text-align: center; width: 40px; }
table.matrix tbody tr:last-child td { border-bottom: none; }
table.matrix tr.note-row td { background: var(--surface-2); padding: 12px 14px; border-right: none; }
table.matrix tr.note-row:last-child td { border-bottom: none; }

.cid { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 4px; padding: 1px 6px; margin-right: 7px; white-space: nowrap; }
.ctext { color: var(--text); }
.ftype { display: inline-block; font-size: 11.5px; color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; margin-left: 7px; white-space: nowrap; }

/* 评分圆点 */
.dot-cell { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 44px; }
.dot-cell input { position: absolute; opacity: 0; pointer-events: none; }
.dot {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
  cursor: pointer; transition: all .12s; user-select: none;
}
.dot:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.dot-cell input:checked + .dot { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.dot-cell input:focus-visible + .dot { outline: 2px solid var(--accent); outline-offset: 2px; }

.note-btn {
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: 6px;
  font-size: 12.5px; padding: 5px 9px; color: var(--text-2); white-space: nowrap;
}
.note-btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.note-btn.has-note { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); font-weight: 500; }
.note-row .note-inner { display: flex; gap: 10px; align-items: flex-start; }
.note-row textarea { flex: 1; min-height: 62px; font-size: 13.5px; }
.note-row .note-close { flex: none; }

/* ---------- 移动端卡片 ---------- */
.item-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.item-card.done { border-color: #bfe3d1; }
.item-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.item-text { font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
.item-seq { margin-left: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dim-group { margin-top: 14px; }
.dim-label { font-size: 13.5px; font-weight: 600; color: var(--accent-strong); margin-bottom: 4px; }
.dim-desc { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.scale-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.scale-opt { position: relative; }
.scale-opt input { position: absolute; opacity: 0; pointer-events: none; }
.scale-opt .scale-box {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 2px; background: var(--surface); cursor: pointer; transition: all .12s; text-align: center;
}
.scale-opt .scale-num { font-size: 15px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.scale-opt .scale-word { font-size: 10.5px; color: var(--text-3); line-height: 1.25; }
.scale-opt input:checked + .scale-box { background: var(--accent); border-color: var(--accent); }
.scale-opt input:checked + .scale-box .scale-num,
.scale-opt input:checked + .scale-box .scale-word { color: #fff; }
.scale-opt input:focus-visible + .scale-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.item-note { margin-top: 14px; }
.item-note textarea { min-height: 60px; font-size: 14px; }

/* ---------- 提交区 ---------- */
.submit-panel { text-align: center; padding: 34px 26px; }
.submit-panel h2 { font-size: 20px; margin-bottom: 8px; }
.lock-list { text-align: left; max-width: 520px; margin: 18px auto 0; font-size: 14px; color: var(--text-2); }
.lock-list li { margin-bottom: 5px; }

/* ---------- 完成页 ---------- */
.done-mark { width: 62px; height: 62px; border-radius: 50%; background: #e8f7ef; border: 2px solid #2f9e6f; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 30px; color: #2f9e6f; }
.summary-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 22px 0; }
.summary-cell { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; }
.summary-cell .k { font-size: 12px; color: var(--text-3); }
.summary-cell .v { font-size: 19px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }

.export-box { text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-top: 20px; }
.export-box textarea { min-height: 150px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: #22303a; color: #fff; border-radius: 999px; padding: 10px 22px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90;
  box-shadow: 0 6px 24px rgba(0,0,0,.2); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.stepline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; flex-wrap: wrap; }
.stepline .s { display: inline-flex; align-items: center; gap: 6px; }
.stepline .s.on { color: var(--accent-strong); font-weight: 600; }
.stepline .s.done { color: #2f9e6f; }
.stepline .sep { color: var(--border-strong); }

.notice {
  border: 1px solid #f0dcc6; background: var(--warn-soft); color: #7a4318;
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; margin-top: 16px;
}
.notice strong { color: #5e3210; }

footer.site { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 40px; font-size: 12px; color: var(--text-3); }
footer.site a { color: var(--text-3); }

@media (max-width: 1023px) {
  main { padding: 16px 14px 110px; }
  .card { padding: 20px 17px; }
  .progress-band { top: 53px; margin: -16px -14px 16px; padding: 9px 14px 11px; }
  .topbar-inner { padding: 9px 14px; }
  .brand-sub { display: none; }
  .btn-lg { width: 100%; }
  .btn-row.stack { flex-direction: column; align-items: stretch; }
  .scale-row { gap: 5px; }
  .scale-opt .scale-word { font-size: 10px; }
  .prop-block { margin-top: 20px; }
}
@media (max-width: 420px) {
  .scale-opt .scale-word { font-size: 9px; letter-spacing: -.3px; }
  .scale-opt .scale-box { padding: 7px 0; }
  .scale-row { gap: 4px; }
  .scale-opt .scale-num { font-size: 14px; }
}

/* ============================================================
   问卷制改造（本轮新增）
   手机端：每屏一条语料，向上滑动切换（CSS 吸附滚动，不依赖 JS）
   ============================================================ */

/* 问卷卡片（分配结果页） */
.qcard { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-top: 12px; background: var(--surface); }
.qcard-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.qid { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 6px; }
.qcard-title { font-weight: 600; font-size: 15.5px; }
.qcard-meta { color: var(--text-2); font-size: 13px; margin-top: 8px; }
.proplist { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.proplist li { border-left: 3px solid var(--accent-soft); padding-left: 10px; font-size: 13.5px; }
.proplist li b { display: block; font-weight: 600; }
.proplist li span { color: var(--text-2); }

/* 问卷头的 P 命题说明 */
.prophead { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin: 18px 0; background: var(--surface-2, #fafafa); }
.prophead-title { font-size: 15px; margin: 0 0 10px; }
.propblock + .propblock { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.propblock-title { font-weight: 600; font-size: 15px; }
.propblock-exp { color: var(--text-2); font-size: 13.5px; margin: 6px 0 0; line-height: 1.75; }
.propblock-core { color: var(--text-2); font-size: 13px; margin: 6px 0 0; }

/* 问卷切换标签 */
.qtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.qtab { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; }
.qtab.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.qtab-n { color: var(--text-2); font-size: 12px; margin-left: 4px; }

/* 进度条 */
.progressbar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin: 14px 0 8px; }
.progressbar-fill { height: 100%; background: var(--accent); transition: width .25s ease; }

/* 逐条评价 */
.pager { display: block; }
.slide { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; margin-top: 14px; background: var(--surface); }
.slide.scored { border-color: var(--accent); }
.slide-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slide-pos { font-size: 12.5px; color: var(--text-2); }
.slide-id { font-size: 12.5px; color: var(--text-2); }
.tag { font-size: 11.5px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; color: var(--text-2); }
.slide-prop { font-size: 13px; color: var(--text-2); margin: 10px 0 0; }
.slide-text { margin: 10px 0 16px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: 15.5px; line-height: 1.85; }
.slide-dims { display: grid; gap: 14px; }
.dimrow-label { font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.dimrow-opts { display: grid; gap: 7px; }
.opt { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; cursor: pointer; font-size: 13.5px; }
.opt:hover { border-color: var(--accent); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.opt-v { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 20px; border: 1.5px solid var(--border); border-radius: 50%; font-size: 12px; font-weight: 600; }
.opt.on .opt-v { border-color: var(--accent); background: var(--accent); color: #fff; }
.slide-note { margin-top: 16px; }

/* 上下条导航 */
.pager-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pager-pos { font-size: 13px; color: var(--text-2); }

/* 完成页统计 */
.stats { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 26px; }
.stat span { font-size: 12.5px; color: var(--text-2); }
.tick { font-size: 46px; color: var(--accent); margin: 6px 0 2px; }
.center { text-align: center; }

/* 手机端：每屏一条语料，上滑切换 */
@media (max-width: 720px) {
  .pager {
    height: calc(100vh - 104px);
    min-height: 380px;
    overflow-y: auto;
    /* 用 proximity 而不是 mandatory：文哲 2 个维度正好一屏，上滑即换条；
       心理学 4 个维度必然超过一屏，mandatory 会把条目底部锁住滑不到。 */
    scroll-snap-type: y proximity;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }
  .slide {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    min-height: 100%;
    margin-top: 0;
    margin-bottom: 8px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
  }
  .slide-dims { margin-top: auto; gap: 7px; }
  .slide-text { font-size: 14px; line-height: 1.65; margin: 5px 0 8px; padding: 8px 10px; }
  .slide-prop { margin-top: 4px; font-size: 12px; }
  .dimrow-opts { gap: 4px; }
  /* 6 点制下每个维度有 6 个选项，这一档必须紧凑，否则一条语料放不进一屏 */
  .opt { padding: 5px 9px; font-size: 12.5px; border-radius: 6px; line-height: 1.3; }
  .opt-v { width: 17px; height: 17px; flex-basis: 17px; font-size: 11px; }
  .dimrow-label { font-size: 12.5px; margin-bottom: 4px; }
  .slide-note { margin-top: 7px; }
  .slide-note textarea { min-height: 32px; font-size: 12.5px; padding: 6px 9px; }
  .slide-note .field-label { font-size: 12px; }
  .slide-head { font-size: 12px; }
  /* 心理学专家有 4 个维度、每个维度 6 级，单列排不下：这一档改用两列，
     让一条语料仍然尽量落在"一屏一条"里。文哲（2 维度）保持单列便于顺着读。 */
  .pager-wide-dims .dimrow-opts { grid-template-columns: 1fr 1fr; }
  .pager-wide-dims .opt { padding: 4px 8px; font-size: 12px; line-height: 1.25; }
  .pager-wide-dims .slide-text { font-size: 13.5px; line-height: 1.6; padding: 7px 9px; margin: 4px 0 7px; }
  .pager-wide-dims .slide-note textarea { min-height: 28px; }
  .pager-wide-dims .slide-note { margin-top: 6px; }
  .pager-wide-dims .dimrow-label { margin-bottom: 3px; }
  .pager-wide-dims .slide-dims { gap: 6px; }
  /* 手机上滑一下就能换条，导航条省下来给内容 */
  .pager-nav { display: none; }
  .qtabs { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 6px 0; }
}

/* ============================================================
   专家评价说明 / 命题解释 / 指标说明（本轮新增）
   只加信息与入口，不改评分流程与数据结构
   ============================================================ */

/* 命题解释块（每条语料的题头） */
.propnote { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2, #fafafa); margin: 8px 0 10px; overflow: hidden; }
.propnote > summary { cursor: pointer; padding: 9px 11px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; list-style: none; }
.propnote > summary::-webkit-details-marker { display: none; }
.propnote > summary::after { content: '＋'; margin-left: auto; color: var(--text-2); font-size: 13px; }
.propnote[open] > summary::after { content: '－'; }
.propnote-tag { font-size: 11.5px; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 6px; flex: 0 0 auto; }
.propnote-title { font-size: 13.5px; font-weight: 600; }
.propnote-toggle { font-size: 12px; color: var(--accent); margin-left: 6px; }
.propnote-body { padding: 0 11px 11px; font-size: 13px; line-height: 1.75; color: var(--text-1); }
.propnote-body p { margin: 6px 0 0; }
.propnote-body b { color: var(--text-1); }
.propnote-caution { border-left: 3px solid #d9822b; background: #fff7ee; padding: 7px 10px; border-radius: 0 6px 6px 0; }
.propnote-src { color: var(--text-2); font-size: 12.5px; }

/* 指标行头部的「?」按钮 */
.dimrow-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.dimrow-head .dimrow-label { margin-bottom: 0; }
.dimhelp { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 700; line-height: 1;
  cursor: pointer; padding: 0; }
.dimhelp:hover { border-color: var(--accent); color: var(--accent); }

/* 「无法判断」选项：与 1–6 分隔开，视觉上不是第七档 */
.opt-unsure { margin-top: 5px; border-style: dashed; color: var(--text-2); font-size: 12.5px; }
.opt-unsure.on { border-style: solid; }
.opt-unsure input { position: absolute; opacity: 0; pointer-events: none; }

/* 备注区 */
.slide-note-hint { font-size: 12px; color: var(--text-2); margin: 2px 0 5px; }

/* 指标说明弹层 */
.modal-back { position: fixed; inset: 0; background: rgba(20, 24, 28, .45); display: flex;
  align-items: center; justify-content: center; padding: 18px; z-index: 50; }
.modal { background: var(--surface); border-radius: var(--radius-sm); max-width: 560px; width: 100%;
  max-height: 84vh; overflow-y: auto; padding: 20px; box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.mhelp-card + .mhelp-card { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.mhelp-card h3 { margin: 0 0 8px; font-size: 16px; }
.mhelp-def, .mhelp-scale, .mhelp-unsure { font-size: 13.5px; line-height: 1.75; margin: 6px 0; }
.mhelp-sub { font-size: 13px; color: var(--text-2); margin: 8px 0 2px; }
.mhelp-card ul { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.8; }
.mhelp-unsure { color: var(--text-2); border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 10px; }

/* 说明页 */
.guide-type { margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.guide-type h2 { margin: 0 0 4px; font-size: 17px; }
.card > .mhelp-card { margin-top: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

@media (max-width: 720px) {
  .propnote { margin: 5px 0 7px; }
  .propnote > summary { padding: 6px 9px; gap: 6px; }
  .propnote-title { font-size: 12.5px; }
  /* 折叠时压成一行，展开后才允许折行——手机上一屏要放得下一条语料 */
  .propnote:not([open]) .propnote-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
  .propnote-body { font-size: 12.5px; line-height: 1.7; padding: 0 9px 9px; }
  .propnote-full { font-weight: 600; }
  .opt-unsure { margin-top: 4px; padding: 5px 9px; font-size: 12px; }
  .slide-note-hint { display: none; }
  .slide-note { margin-top: 6px; }
  .slide-note textarea { min-height: 26px; font-size: 12.5px; padding: 5px 9px; }
  .slide-note .field-label { font-size: 12px; }
  .modal { padding: 16px; }
  .mhelp-def, .mhelp-scale, .mhelp-card ul { font-size: 13px; }
}
