/* 申论专项页样式。
   和 case.css 一样刻意**不引 app.css**：这是独立页面（深色头 + 白卡片），
   基础规则抄最小一份，避免两个页面互相拖累。 */
:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#10233f;background:#f2f5f8;--blue:#1769e0;--muted:#64748b;--line:#dce3ea;--warn:#a35a00}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:#f2f5f8}
.top{background:#10233f;color:#fff;padding:calc(env(safe-area-inset-top) + 22px) 16px 28px}
.wrap{max-width:720px;margin:auto}
.top h1{margin:5px 0;font-size:27px}
.sub{color:#a9b8ca;font-size:13px;line-height:1.55}
.main{padding:14px 14px calc(env(safe-area-inset-bottom) + 30px)}
.card{background:#fff;border-radius:20px;padding:18px;margin-bottom:12px;box-shadow:0 10px 26px #10233f10}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.stat{background:#f5f7fa;border-radius:14px;padding:12px 6px;text-align:center}
.stat b{display:block;font:800 22px Georgia,serif}
.stat span{font-size:11.5px;color:var(--muted)}
.titleline{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.back{border:0;background:transparent;color:#fff;font-weight:800;padding:0;font-size:14px}
.btn{width:100%;border:0;border-radius:15px;padding:15px;font-weight:800;font-size:16px;background:var(--blue);color:#fff;cursor:pointer}
.btn.line{background:#edf1f5;color:#334155}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.mini{border:0;background:#edf1f5;color:#475569;border-radius:12px;padding:9px 14px;font-weight:800;font-size:13px;white-space:nowrap;cursor:pointer}
.hidden{display:none!important}
.muted{color:var(--muted)}
.small{font-size:12px}
.row-gap{display:grid;gap:8px}
/* 卷列表 */
.paper-item{display:block;width:100%;text-align:left;background:#fff;border:1px solid #eef2f6;border-radius:18px;padding:14px;margin-bottom:10px;cursor:pointer;font:inherit;color:inherit}
.paper-item b{display:block;margin-bottom:6px;font-size:15px;line-height:1.5}
.paper-meta{font-size:12px;color:var(--muted);line-height:1.6}
.tag{display:inline-block;font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px;background:#e8eef7;color:#28496f;margin-right:6px}
.tag.done{background:#eaf3de;color:#27500a}
.tag.doing{background:#faeeda;color:#854f0b}
/* 材料 */
.mat{border:1px solid var(--line);border-radius:16px;padding:12px 14px;margin-bottom:10px;background:#fbfcfe}
.mat h3{margin:0 0 8px;font-size:13px;color:#28496f}
.mat p{margin:0;white-space:pre-wrap;line-height:1.85;font-size:14.5px}
/* 题目切换 */
.qnav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.qnav button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 12px;font-weight:800;font-size:13px;color:#526276;cursor:pointer}
.qnav button.on{background:var(--blue);color:#fff;border-color:var(--blue)}
.qnav button.done{background:#eaf3de;color:#27500a;border-color:#d7e8c2}
/* 设问 */
.ask{white-space:pre-wrap;line-height:1.8;font-size:15px}
.asks{list-style:none;margin:10px 0 0;padding:0}
.asks li{position:relative;padding:6px 0 6px 22px;line-height:1.7;font-size:14px;color:#334155}
.asks li:before{content:"·";position:absolute;left:8px;font-weight:900;color:var(--blue)}
.facts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.fact{background:#f5f7fa;border-radius:12px;padding:8px 12px;font-size:12.5px;color:#334155}
.fact b{font-size:13.5px}
/* 作答 */
.answer{width:100%;min-height:220px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:13px;font:inherit;line-height:1.8;resize:vertical;color:#10233f}
.counter{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:12.5px;color:var(--muted)}
.counter b{font-size:13px}
.counter.over b{color:#a32d2d}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
/* 点评 */
.note{background:#fff8e8;border:1px solid #f2dfb8;color:#7a4a00;border-radius:14px;padding:11px 13px;font-size:12.5px;line-height:1.65}
.point{display:flex;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;margin-bottom:8px;background:#f8fafc}
.point .tick{flex:0 0 22px;height:22px;border-radius:50%;background:#e2e8f0;color:#475569;font-weight:900;font-size:12px;display:flex;align-items:center;justify-content:center;margin-top:2px}
.point.hit{border-color:#c9e3b4;background:#f4faee}
.point.hit .tick{background:#4b8b2b;color:#fff}
.point .body{flex:1;min-width:0}
.point .body p{margin:0;line-height:1.7;font-size:14px}
.point .ref{margin-top:4px;font-size:11.5px;color:var(--muted)}
.comment{white-space:pre-wrap;line-height:1.85;font-size:14.5px}
.disclaimer{display:inline-block;font-size:11.5px;font-weight:800;background:#fdeee0;color:#8a4b00;border-radius:999px;padding:4px 10px;margin-bottom:10px}
.empty{text-align:center;padding:26px 10px;color:var(--muted);font-size:13.5px;line-height:1.7}
.msg{border-radius:14px;padding:12px 14px;font-size:13.5px;line-height:1.7;margin-bottom:12px}
.msg.err{background:#fdecec;color:#8a2222;border:1px solid #f3c9c9}
.msg.ok{background:#eef8f1;color:#1e5d3d;border:1px solid #c9e6d3}
:focus-visible{outline:3px solid #63a7ff;outline-offset:2px}
