@charset "UTF-8";
:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--brand-ink,#202b48);background:var(--brand-background,#f8f8fc);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:var(--brand-primary,#354c96);text-decoration:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,label:focus-visible{outline:3px solid #86a0e0;outline-offset:3px}[hidden]{display:none!important}.skip{position:fixed;top:-60px;left:12px;background:#fff;padding:10px;z-index:20}.skip:focus{top:6px}
.topbar{height:68px;display:flex;align-items:center;gap:18px;padding:0 24px;background:#fff;border-bottom:1px solid var(--brand-line,#e1e5f0);position:sticky;top:0;z-index:6}.brand{display:flex;align-items:center;gap:9px;color:var(--brand-ink)}.brand-mark img{display:block;border-radius:10px}.brand strong{font-size:21px;letter-spacing:2px}.brand-en{font-size:12px;color:#7d89a6}.divider{width:1px;height:18px;background:var(--brand-line)}.page-name{font-size:14px;color:#5a6b93}.top-right{margin-left:auto;display:flex;align-items:center;gap:14px}.pill{padding:4px 9px;border-radius:5px;background:var(--brand-pale,#eef1fb);color:#6a7ba8;font-size:10px}.text-link{font-size:12px;color:#5b6f9c}
#workbench{max-width:1660px;margin:0 auto;padding:22px 24px 0}.intro{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:18px;flex-wrap:wrap}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#7f8fb6;font-weight:600}.intro h1{font-size:30px;letter-spacing:-1px;margin:8px 0;font-weight:600}.intro p{font-size:13px;color:#7382a1;margin:0;line-height:1.8}.title-field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#7a88a4}.title-field input{width:260px;max-width:100%;padding:10px 12px;border:1px solid var(--brand-line);border-radius:9px;background:#fff;font-size:14px}
.notice{background:#fcf6e7;border:1px solid #ecdcb8;color:#8a6a2c;border-radius:9px;padding:10px 14px;font-size:12px;line-height:1.7;margin-bottom:14px}
.grid{display:grid;grid-template-columns:275px minmax(0,1.1fr) 300px;gap:14px;align-items:start}.panel{background:#fff;border:1px solid var(--brand-line);border-radius:15px;padding:16px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.panel-head h2{font-size:14px;margin:0;font-weight:600;letter-spacing:-.2px}.muted{font-size:11px;color:#8895ae}.pad{padding:14px 4px}.filters{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.filters input,.filters select{border:1px solid var(--brand-line);border-radius:8px;background:#fbfbfe;padding:8px 10px;font-size:12px;min-width:0}.filter-row{display:flex;gap:6px}.filter-row select{flex:1}.topic-list{max-height:520px;overflow:auto;scrollbar-width:thin}.topic-item{display:block;width:100%;text-align:left;padding:10px 9px;border-radius:8px;border:1px solid transparent;background:none;font-size:12px;color:#5d6f95;line-height:1.6;margin:2px 0}.topic-item:hover{background:#f6f7fc}.topic-item.current{background:var(--brand-pale,#eef1fb);border-color:#d9e0f5;color:var(--brand-primary)}.topic-item small{display:block;color:#93a0ba;font-size:10px;margin-top:3px}
.question-head{padding:0 2px 8px;font-size:11px;color:#8793ac}.question-list{max-height:520px;overflow:auto;scrollbar-width:thin}.question-item{border:1px solid #edf0f7;border-radius:9px;padding:11px;margin:7px 0}.q-meta{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}.tag{font-size:9px;padding:2px 6px;border-radius:4px;background:#f1f3f9;color:#7a87a3}.tag.ok{background:#edf5e4;color:#5d7d45}.q-text{font-size:12px;line-height:1.75;color:#4d5c7c;white-space:pre-wrap;margin:0 0 8px;max-height:5.4em;overflow:hidden}.q-actions{display:flex;justify-content:flex-end;gap:6px}.button{background:var(--brand-primary,#354c96);color:#fff;border-radius:8px;padding:9px 14px;font-size:12px;min-height:38px}.button.secondary{background:#fff;color:#4d6494;border:1px solid #d7deee}.button.small{font-size:11px;padding:5px 11px;min-height:30px}.button:disabled{background:#c7cfdf}
.basket-tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.basket-tools.sub{margin-bottom:8px;gap:12px}.basket-tools-right{display:flex;align-items:center;gap:2px}.check{font-size:11px;color:#6b7b9c;display:flex;align-items:center;gap:5px}.text-button{background:none;color:#6479a4;font-size:11px;padding:4px}.basket-list{max-height:280px;overflow:auto;scrollbar-width:thin}.basket-item{display:flex;gap:8px;align-items:flex-start;border-top:1px solid #edf0f7;padding:9px 0}.basket-item:first-child{border-top:0}.basket-item.locked{background:#f4f6fc;border-radius:8px}.basket-item.locked p{color:#8a97b5}.basket-item .num{font-size:10px;color:#93a0ba;width:16px;flex-shrink:0;padding-top:2px}.basket-item p{font-size:11px;line-height:1.6;color:#5a6a8c;margin:0;flex:1;overflow:hidden;max-height:3.2em}.basket-actions{display:flex;gap:2px}.icon{background:#f2f4fa;border-radius:5px;width:22px;height:22px;font-size:12px;color:#6e7fa6;padding:0}.icon.lock-on{background:#e0e7f8;color:var(--brand-primary,#354c96)}.quality{margin-top:10px;border-radius:8px;padding:10px;font-size:11px;line-height:1.7}.quality.blocked{background:#fdf1ee;border:1px solid #efcfc6;color:#9a5140}.quality.warn{background:#fcf7e9;border:1px solid #ecdcb8;color:#87703a}.quality.ok{background:#eff6e9;border:1px solid #d9e7cb;color:#5a7a45}.quality strong{display:block;margin-bottom:4px}.quality ul{margin:4px 0 0;padding-left:16px}
.blueprint{margin-top:10px;border-radius:8px;padding:10px;font-size:11px;line-height:1.7;background:#f4f6fd;border:1px solid #dde4f5;color:#4d5f88}.blueprint strong{display:block;margin-bottom:4px}.blueprint ul{margin:4px 0;padding-left:16px}.blueprint li{margin:2px 0}.bp-note{display:block;font-size:9.5px;color:#8d9ab8;margin-top:3px}
.difficulty-row{margin:0 0 8px}.difficulty-row select{width:100%;border:1px solid var(--brand-line,#e1e5f0);border-radius:8px;background:#fbfbfe;padding:8px 10px;font-size:12px}
.meta-fields{display:flex;gap:6px;margin-bottom:8px}.mini-input{flex:1;min-width:0;border:1px solid var(--brand-line,#e1e5f0);border-radius:7px;background:#fbfbfe;padding:7px 9px;font-size:11px;color:#4d5c7c}.theme-select{flex:0 0 150px}.actions{display:flex;gap:8px;margin-top:12px}.actions .button{flex:1}.save-row{display:flex;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap}.save-row .muted{margin-left:auto}.fine{font-size:10px;line-height:1.7;color:#97a1b7;margin:10px 0 0}
.hint{font-size:10.5px;line-height:1.6;color:#96a0b7;margin:0 0 9px;padding-left:1px}
.preview-wrap{margin-top:16px}
.preview-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.preview-bar .panel-head{margin-bottom:0}
.toolbar-controls{display:flex;align-items:center;gap:7px}
.toolbar-controls .icon.zoom{width:26px;height:26px;font-size:13px}
.pager{display:flex;align-items:center;gap:5px;padding-left:9px;border-left:1px solid var(--brand-line,#e1e5f0)}
.preview{display:flex;gap:16px;overflow:auto;background:#eceff7;border:1px solid #dfe4ef;border-radius:12px;padding:18px;min-height:200px}
.preview .sheet{zoom:.5;flex:0 0 auto;margin:0}
.preview .muted{padding:20px}
.sheet{width:210mm;min-height:297mm;background:#fff;padding:17mm 18mm 16mm;position:relative;color:#222;font:12pt/1.8 -apple-system,"PingFang SC",sans-serif;border:1px solid #e0e0e0;overflow-wrap:anywhere}.sheet-header{display:flex;justify-content:space-between;font-size:8pt;border-bottom:1px solid #ccc;padding-bottom:5mm;color:#666}.sheet-brand img{width:20px;height:20px;vertical-align:-4px;margin-right:6px}.sheet h1{font-size:23pt;line-height:1.5;font-weight:500;margin:7mm 0 2mm}.sheet-subtitle{font-size:8pt;color:#777;line-height:1.7}.sheet-person{font-size:10pt;margin:6mm 0 8mm;color:#777}.sheet-footer{font-size:7pt;color:#999;margin-top:10mm;border-top:1px solid #ddd;padding-top:3mm}.paper-question{break-inside:avoid;margin:7mm 0}.paper-question p{white-space:pre-wrap}.writing-space{min-height:22mm;background:repeating-linear-gradient(to bottom,transparent,transparent 8mm,#eee 8mm,#eee 8.2mm)}.paper-answer{white-space:pre-wrap;font-size:10pt;line-height:1.8;border-bottom:1px solid #eee;padding:3mm 0;break-inside:avoid}
.paper-group-header,.paper-section-header{font-weight:600;font-size:12pt;margin:6mm 0 3mm;padding-bottom:1mm;border-bottom:1px solid #ddd;break-after:avoid}
.paper-score{font-size:9pt;color:#666;white-space:nowrap}
.sheet.sealed{padding-left:32mm}
.seal-strip{position:absolute;left:7mm;top:12mm;bottom:14mm;width:17mm;padding-right:3mm;border-right:1.5px dashed #999;writing-mode:vertical-rl;font-size:9pt;color:#555;letter-spacing:1px;overflow:hidden}
.seal-strip span{display:inline-block;margin-left:5mm}
.seal-strip .seal-title{color:#999;font-size:8pt}
.sheet-meta{font-size:9pt;color:#555;margin:1mm 0 0;letter-spacing:1px}.sheet-motto{font-size:10pt;color:#777;margin:4mm 0 0;letter-spacing:2px;text-align:center}.sheet.cream{background:#f7f2e3}.sheet-header.rule-double{border-bottom:3px double #999}
.theme-frame{position:absolute;inset:8mm;border:1.5px dashed #d9b45c;border-radius:6mm;break-inside:avoid}.sheet.theme-shouzhang{background:#fdf6e3}.sheet.theme-shouzhang h1,.sheet.theme-shouzhang .paper-section-header,.sheet.theme-shouzhang .paper-group-header{color:#8a5a18}.sheet.theme-shouzhang .sheet-header,.sheet.theme-shouzhang .sheet-meta,.sheet.theme-shouzhang .sheet-motto{color:#a3772c}.sheet.theme-shouzhang .sheet-header,.sheet.theme-shouzhang .paper-section-header,.sheet.theme-shouzhang .paper-group-header{border-bottom-color:#e0c98f}.sheet.theme-indigo h1,.sheet.theme-indigo .paper-section-header,.sheet.theme-indigo .paper-group-header{color:#354c96}.sheet.theme-indigo .sheet-header,.sheet.theme-indigo .sheet-meta,.sheet.theme-indigo .sheet-motto{color:#5b6f9c}.sheet.theme-indigo .theme-frame{border-color:#9db1e0;border-radius:4mm}.sheet.theme-indigo .sheet-header,.sheet.theme-indigo .paper-section-header,.sheet.theme-indigo .paper-group-header{border-bottom-color:#c3cede}
.footer{display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--brand-line);margin-top:26px;padding:18px 0;font-size:10px;color:#97a1b7}.footer i{font-style:normal;padding:0 8px;color:#c3cad9}
.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#26365c;color:#fff;padding:10px 18px;border-radius:9px;font-size:12px;z-index:30;max-width:calc(100% - 30px)}#print-root{display:none}body.printing #print-root{display:block}
@media(max-width:1200px){.grid{grid-template-columns:240px minmax(0,1fr)}.basket{grid-column:1 / -1}.basket-list{max-height:200px}}
@media(max-width:760px){#workbench{padding:16px 12px 0}.intro h1{font-size:25px}.grid{grid-template-columns:1fr}.topic-list,.question-list{max-height:300px}.title-field input{width:100%}.preview .sheet{zoom:.36}.topbar{padding:0 14px;gap:10px}.brand-en,.divider,.page-name{display:none}.actions{flex-direction:column}}
.paper-grid{display:grid;grid-template-columns:repeat(14,1fr);border-top:1px solid #bbb;border-left:1px solid #bbb;margin-top:10mm}.paper-grid span{aspect-ratio:1;border-right:1px solid #bbb;border-bottom:1px solid #bbb}@media print{html,body{background:#fff!important;height:auto!important;overflow:visible!important}body.printing>*:not(#print-root){display:none!important}body.printing #print-root{display:block!important}.sheet{width:210mm;min-height:297mm;border:0;margin:0;zoom:1!important;break-after:page}.sheet:last-child{break-after:auto}.paper-grid span{border-color:#aaa}@page{size:A4;margin:0}}

/* 复刻简小排：习题排版控制 */
.paper-options { margin: 2mm 0 2mm 6mm; }
.paper-options.options-double { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 8mm; }
.paper-option { font-size: 11.5pt; padding: 0.8mm 0; }
.paper-inline-answer { font-size: 10pt; color: #b3541e; margin: 1.5mm 0 0 6mm; }
.writing-space.writing-space-large { min-height: 40mm; }

.paste-import { margin: 8px 0; border: 1px dashed #c9d2e6; border-radius: 8px; padding: 8px 10px; background: #fafbfd; }
.paste-import summary { cursor: pointer; font-size: 12px; color: #5b6f9c; font-weight: 600; }
.paste-input { width: 100%; margin: 8px 0; border: 1px solid #e1e5f0; border-radius: 7px; padding: 8px; font-size: 12px; font-family: inherit; resize: vertical; }

.paper-options.options-fixed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1mm 4mm; }
.paper-question.indent-1 { padding-left: 6mm; }
.paper-question.indent-2 { padding-left: 12mm; }

/* 专业排版工作台（四标签） */
.workbench { background: #fff; border: 1px solid #e1e5f0; border-radius: 15px; padding: 18px; margin-top: 16px; }
.wb-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.wb-head h2 { font-size: 16px; margin: 0; color: #243252; }
.wb-tabs { display: flex; gap: 6px; border-bottom: 2px solid #eef0f7; margin-bottom: 14px; flex-wrap: wrap; }
.wb-tab { background: none; border: 0; padding: 9px 18px; font-size: 13px; color: #7382a1; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 600; }
.wb-tab.active { color: #354c96; border-bottom-color: #354c96; }
.wb-panel { display: none; }
.wb-panel.active { display: block; }
.wb-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.wb-controls .mini-input { flex: 0 1 auto; min-width: 120px; }
.mini-label { font-size: 11px; color: #6b7b9c; display: flex; align-items: center; gap: 6px; }
.mini-label .mini-input { width: 70px; }
.wb-editor { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; margin-bottom: 12px; }
.wb-q-card { border: 1px solid #e8edf6; border-radius: 10px; padding: 12px; background: #fafbfd; }
.wb-q-head { font-size: 12px; font-weight: 700; color: #354c96; margin-bottom: 8px; }
.wb-field { display: block; font-size: 11px; color: #8895ae; margin-bottom: 6px; }
.wb-input { width: 100%; border: 1px solid #e1e5f0; border-radius: 7px; padding: 7px 9px; font-size: 12px; font-family: inherit; margin-top: 3px; resize: vertical; }
.wb-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.wb-history { font-size: 12px; color: #7382a1; }

/* ===== 简小排真实试卷排版语言（2026-11-21 高精度复刻）===== */
/* 教科书衬线体：Times 管数字/英文，宋体管中文——告别网页黑体感 */
.sheet { font-family: "Times New Roman", "Songti SC", "SimSun", "STSong", serif; }
.sheet h1 { text-align: center; font-weight: 700; font-size: 20pt; margin: 6mm 0 3mm; letter-spacing: 1px; }
.sheet-person { text-align: center; color: #444; font-size: 10.5pt; margin: 5mm 0 7mm; letter-spacing: .5px; }
.sheet-footer { text-align: center; }
.sheet-header-time { white-space: nowrap; }
/* 红色粗体大题号、无下划线——真实试卷的标志 */
.paper-section-header, .paper-group-header { color: #dc2626; font-weight: 700; font-size: 12.5pt; border-bottom: none; padding-bottom: 0; margin: 7mm 0 3mm; }
/* 纯文本题目 + 大留白，无卡片边框 */
.paper-question { margin: 5mm 0; line-height: 1.9; }
/* 选择题选项横排 inline（单列默认）；双列/固定网格特异性更高不受影响 */
.paper-options { display: flex; flex-wrap: wrap; gap: 2mm 10mm; margin: 2mm 0 2mm 6mm; }

/* 全文可编辑面（简小排 reeditable 模型） */
.reedit-panel{max-width:210mm;margin:0 auto 16px;padding:8mm;background:#f7f8fc;border:1px solid #e1e5f0;border-radius:10px}
.reedit-doc{display:flex;flex-direction:column;gap:5mm;font:12pt/1.8 "Songti SC","SimSun",serif}
.reedit-item{border:1px solid #e1e5f0;border-radius:8px;padding:4mm 5mm;background:#fff;break-inside:avoid}
.reedit-stem{margin-bottom:2mm}
.reedit-num{color:#dc2626;font-weight:700;margin-right:2mm}
.reedit-options{display:flex;flex-wrap:wrap;gap:2mm 8mm;margin:2mm 0}
.reedit-optlabel{color:#666;margin-right:1mm}
.reedit-answer{color:#1e7d32;font-size:10.5pt;margin-top:2mm}
.reedit-text{outline:none;border-bottom:1px dashed transparent;padding:0 1mm;border-radius:3px;cursor:text}
.reedit-text:hover{background:#f4f6fb}
.reedit-text:focus{border-bottom-color:#354c96;background:#eef2fb}
#reedit-toggle.active{background:#354c96;color:#fff}
/* C1：从 app/styles.css 同步核心卷面基础规则（一致性门假阴性修复揪出的缺失 + 品牌区 drift）。 */
.sheet-brand{display:flex;align-items:center;gap:8px;letter-spacing:.5px}
.sheet-logo,.sheet-logo img{display:block;width:22px;height:22px;object-fit:contain;flex-shrink:0}
.sheet-brand img{width:22px;height:22px}
.paper-group-header{font-weight:600;font-size:12pt;margin:6mm 0 3mm;padding-bottom:1mm;border-bottom:1px solid #ddd;break-after:avoid}
.paper-section-header{font-weight:600;font-size:12pt;margin:6mm 0 3mm;padding-bottom:1mm;border-bottom:1px solid #ddd;break-after:avoid}
