/* GPT 出题模式：在刷题站 study.css 之上补的几样（study.css 是照搬的，改样式先改刷题站再复制过来） */
body.gpt{--hero:var(--p);--on-hero:#FFFFFF;--k1:var(--y);--k2:var(--m);--k3:var(--c)}
.hero .intro{margin:10px 0 0;max-width:24em;font-weight:700;font-size:14.5px;line-height:1.65;opacity:.92}
.hero .intro b{font-weight:900}

/* 锁屏 */
.lock{padding-top:12vh}
.lock h1{margin:0;font-size:30px;font-weight:900}
.lock p{margin:8px 0 18px;color:var(--muted);font-weight:700}
.lock form{display:grid;gap:12px}
.field{width:100%;min-height:52px;padding:12px 14px;border-radius:16px;border:2.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-weight:700;font-size:16px}
.field:focus{outline:none;border-color:var(--b)}
textarea.field{min-height:120px;resize:vertical;line-height:1.7}
.lock .err{color:var(--c-ink);font-weight:800;font-size:14px}

/* 列表 */
.list-h{margin:26px 2px 10px;font-size:17px;font-weight:900}
.subject .dot{background:var(--surface-2);color:var(--ink-2)}
.subject .dot.fresh{background:var(--p);color:#fff}
.subject .bar i{background:var(--m)}
.foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;margin:26px 0 8px}
.foot-links .link{color:var(--muted);font-size:14px}
.foot-links .link.danger{color:var(--c-ink)}

/* 答题页 */
.set-head{margin:6px 0 18px}
.set-head h1{margin:0;font-size:24px;line-height:1.35;font-weight:900}
.set-head small{color:var(--muted);font-weight:800;font-size:13.5px}
.set-head .intro{margin:10px 0 0;padding:12px 14px;border-radius:16px;background:var(--p-soft);color:var(--ink-2);font-size:14.5px;font-weight:600;line-height:1.7}
.badge.b-type{background:var(--p-soft);color:var(--p-edge)}
.badge.b-topic{background:var(--surface-2);color:var(--muted)}
.qtools{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 12px}
.qtools .chip{min-height:34px;padding:0 12px;font-size:13.5px}
.multi-tip{margin:-6px 0 12px;color:var(--muted);font-size:13.5px;font-weight:800}
.submit{width:100%;margin-top:14px}
.mine{margin-top:4px;padding:12px 14px;border-radius:16px;background:var(--surface-2);font-weight:600;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.mine-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px;color:var(--muted);font-size:13.5px;font-weight:800}
.wait{margin-top:12px;padding:12px 14px;border-radius:16px;background:var(--y-soft);color:var(--y-ink);font-size:14.5px;font-weight:800}
.grade{margin-top:12px;padding:14px;border-radius:16px;background:var(--ok-soft);border:2.5px solid var(--ok);line-height:1.75;font-weight:600;color:var(--ink-2)}
.grade .gh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;color:var(--ok);font-weight:900}
.grade .gh span{font-size:20px}
.note-box{margin-top:16px}
.note-box summary{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:var(--b-ink);font-weight:900;font-size:14px;cursor:pointer;list-style:none}
.note-box summary::-webkit-details-marker{display:none}
.note-box textarea.field{min-height:84px;font-size:15px}
.note-box .st{margin-top:4px;color:var(--muted);font-size:12.5px;font-weight:800;min-height:1.4em}
.verdict .md,.hint .md{margin:8px 0 0}

/* 一组做完 */
.endcard{margin-top:22px;padding:18px 16px;border-radius:22px;border:2.5px solid var(--frame);background:var(--surface);box-shadow:0 5px 0 var(--frame)}
.endcard h2{margin:0;font-size:20px;font-weight:900}
.endcard .nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.endcard .nums div{padding:10px;border-radius:16px;background:var(--surface-2);text-align:center}
.endcard .nums strong{display:block;font-size:26px;font-weight:900;line-height:1.1}
.endcard .nums small{color:var(--muted);font-size:12.5px;font-weight:800}
.endcard p{margin:0 0 12px;color:var(--ink-2);font-weight:700;font-size:14.5px;line-height:1.7}
.endcard .btn{width:100%}
.qdots{display:flex;gap:6px;margin:0 0 14px}
.qdots button{flex:1;height:10px;border-radius:999px;background:var(--surface-2)}
.qdots button.ok{background:var(--ok)}.qdots button.no{background:var(--c)}.qdots button.sa{background:var(--y)}
.qdots button.cur{outline:2.5px solid var(--ink);outline-offset:2px}
body.gpt .cta{background:var(--y);color:#1E1E24;box-shadow:0 5px 0 var(--y-edge)}
body.gpt .cta:active{box-shadow:0 2px 0 var(--y-edge)}
body.gpt .cta .ico{background:#1E1E2414}

/* g2：科目标签、已做完折叠、作废/更正、键盘提示 */
.subtabs{display:flex;gap:8px;overflow-x:auto;margin:0 0 14px;padding:2px 0 6px;scrollbar-width:none}
.subtabs::-webkit-scrollbar{display:none}
kbd{display:none;margin-left:6px;padding:0 6px;border-radius:6px;border:1.5px solid currentColor;font:inherit;font-size:11.5px;font-weight:900;line-height:1.5;opacity:.55}
details.fin{margin-top:22px}
details.fin summary{min-height:44px;display:flex;align-items:center;color:var(--muted);font-weight:900;font-size:15px;cursor:pointer;list-style:none}
details.fin summary::-webkit-details-marker{display:none}
details.fin summary::before{content:"▸";margin-right:8px;transition:transform .15s}
details.fin[open] summary::before{transform:rotate(90deg)}
.badge.b-fix{background:var(--y-soft);color:var(--y-ink)}
.badge.b-void{background:var(--surface-2);color:var(--muted)}
.voidnote{margin:0 0 12px;padding:12px 14px;border-radius:16px;background:var(--surface-2);color:var(--ink-2);font-weight:800;font-size:14.5px;line-height:1.6}
.fixnote{margin-top:8px;color:var(--y-ink);font-size:13.5px;font-weight:800}
.qdots button.vd{background:repeating-linear-gradient(45deg,var(--line) 0 4px,transparent 4px 8px)}
.keys{display:none;margin:18px 0 0;color:var(--muted);font-size:13px;font-weight:700;text-align:center}

/* 电脑：答题区收窄居中，显示键盘提示 */
@media (hover:hover) and (pointer:fine){
  kbd{display:inline-block}
  .keys{display:block}
  .opt .k{position:relative}
}
@media (min-width:900px){
  body.gpt .wrap{width:min(820px,100%)}
  .set-head{margin:0 0 12px}
  .set-head h1{font-size:22px;line-height:1.3}
  .set-head small{font-size:13px}
  .set-head .intro{margin-top:8px;padding:8px 12px;border-radius:12px;font-size:13.5px;line-height:1.6}
  .qdots{margin-bottom:10px}
  .qhead{margin-bottom:6px}
  .stem{font-size:17px;line-height:1.75;margin-bottom:12px}
  .opts{gap:8px}
  .opt{min-height:46px;padding:8px 14px;border-radius:14px;box-shadow:0 3px 0 var(--line);font-size:15.5px}
  .opt:hover:not([disabled]){border-color:var(--b)}
  .note-box{margin-top:8px}
  .note-box summary{min-height:32px}
  .keys{margin:6px 0 0;font-size:12.5px}
  .foot-links{margin:14px 0 8px}
  /* 上一题/下一题贴在窗口底部，不用滚到最下面 */
  .qnav{position:sticky;bottom:0;z-index:5;margin-top:12px;padding:12px 0 10px;background:linear-gradient(to bottom,transparent,var(--bg) 28%)}
  .qnav .btn{min-height:46px}
}
/* 宽屏：左边放题干/材料，右边放选项；简答题上下排 */
.material{margin:0 0 14px;padding:12px 14px;border-radius:16px;background:var(--surface-2);color:var(--ink-2);font-size:15px;line-height:1.8}
.material b{display:block;margin-bottom:4px;color:var(--muted);font-size:13px;font-weight:900}
@media (min-width:1000px){
  body.gpt .wrap:has(#quiz){width:min(1200px,100%)}
  .qbody:not(.stack){display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:44px;align-items:start}
  .qbody:not(.stack)>.qleft{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;padding-right:4px}
  .qbody:not(.stack) .stem{font-size:19px;line-height:1.85;margin:2px 0 0}
  .qbody:not(.stack) .material+.stem{padding-top:4px}
  .qbody.stack{max-width:820px}
  .qnav{width:calc((100% - 44px)*6/11);margin-left:auto}
  body:has(.qbody.stack) .qnav{width:min(820px,100%);margin-inline:0}
  #quiz>.qdots,.qhead,.endcard,.keys{max-width:none}
}
body.has-verdict #quiz .qtools{visibility:hidden}
