:root{--bg:#f4f7fb;--panel:#fff;--panel-soft:#f8fbff;--text:#172033;--muted:#667085;--line:#d9e3ef;--primary:#175cd3;--primary-dark:#123f8c;--accent:#0f9f8f;--warning:#c97312;--danger:#c03744;--shadow:0 18px 42px rgba(23,32,51,.09)}*{box-sizing:border-box}html,body{min-height:100%}body{color:var(--text);background:var(--bg);margin:0;font-family:Arial,Microsoft YaHei,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.6}.appShell{grid-template-columns:260px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#fff;background:#14243d;flex-direction:column;gap:28px;padding:28px 20px;display:flex}.brand{gap:8px;display:grid}.brandMark{background:var(--accent);border-radius:8px;place-items:center;width:42px;height:42px;font-weight:800;display:grid}.brand h1{margin:0;font-size:21px;line-height:1.25}.brand p{color:#b9c7da;margin:0;font-size:13px;line-height:1.6}.steps{gap:12px;display:grid}.stepItem{color:#cbd8ea;grid-template-columns:30px 1fr;align-items:start;gap:10px;display:grid}.stepIndex{background:rgba(255,255,255,.12);border-radius:50%;place-items:center;width:30px;height:30px;font-size:13px;font-weight:700;display:grid}.stepItem.active .stepIndex,.stepItem.done .stepIndex{background:var(--accent);color:#fff}.stepTitle{margin:2px 0 3px;font-size:14px;font-weight:700}.stepDesc{color:#9fb0c7;font-size:12px;line-height:1.5}.main{align-content:start;gap:18px;padding:28px;display:grid}.topbar{justify-content:space-between;align-items:center;gap:16px;display:flex}.topbar h2{margin:0;font-size:24px}.topbar p{color:var(--muted);margin:7px 0 0;font-size:14px}.actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.button{background:var(--primary);color:#fff;white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 15px;font-weight:700;text-decoration:none;display:inline-flex}.button.secondary{color:#1b3359;background:#e8eef7}.button.ghost{color:var(--primary);background:0 0}.grid{grid-template-columns:minmax(320px,420px) minmax(0,1fr);align-items:start;gap:18px;display:grid}.panel,.toolPanel{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px}.panel{padding:18px}.panelTitle{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.panelTitle h3{margin:0;font-size:16px}.panelTitle span{color:var(--muted);font-size:12px}.dropzone{background:var(--panel-soft);text-align:center;border:1.5px dashed #a9bbd4;border-radius:8px;place-items:center;min-height:160px;padding:22px;display:grid}.dropIcon{width:50px;height:50px;color:var(--primary);background:#dbeafe;border-radius:8px;place-items:center;margin:0 auto 12px;font-size:25px;display:grid}.fileInput{display:none}.linkButton{color:var(--primary);background:0 0;padding:0;font-weight:700}.formRow{grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;display:grid}.field{gap:6px;display:grid}.field label{color:#344054;font-size:12px;font-weight:700}.field input,.field select,.field textarea{border:1px solid var(--line);width:100%;color:var(--text);background:#fff;border-radius:8px;outline:none;padding:10px 11px}.field textarea{resize:vertical;min-height:92px}.statusBox{color:#26466f;background:#eef6ff;border:1px solid #cce2ff;border-radius:8px;margin-top:14px;padding:12px;font-size:13px;line-height:1.5}.statusBox.error{color:var(--danger);background:#fff1f2;border-color:#fecdd3}.progressBox{border:1px solid var(--line);background:#fff;border-radius:8px;margin-top:14px;padding:12px}.progressHeader{justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.progressHeader span{color:var(--muted);font-weight:700}.progressTrack{background:#e8eef7;border-radius:999px;height:8px;margin-top:10px;overflow:hidden}.progressTrack div{border-radius:inherit;background:var(--accent);height:100%;transition:width .25s}.progressSteps{grid-template-columns:repeat(6,1fr);gap:6px;margin-top:10px;display:grid}.progressSteps span{color:var(--muted);text-align:center;font-size:11px}.progressSteps span.done{color:var(--accent);font-weight:700}.qualityBox{border-radius:8px;gap:4px;margin-top:12px;padding:12px;font-size:13px;line-height:1.45;display:grid}.qualityBox.ok{color:#146458;background:#effcf9;border:1px solid #b7e2d9}.qualityBox.warn{color:var(--warning);background:#fff8eb;border:1px solid #f8d59d}.qualityBox span{color:inherit}.metricGrid{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.metric{background:var(--panel-soft);border:1px solid var(--line);border-radius:8px;padding:12px}.metric strong{margin-bottom:4px;font-size:20px;display:block}.metric span{color:var(--muted);font-size:12px}.editorLayout{grid-template-columns:300px minmax(0,1fr);min-height:650px;display:grid}.slideList{border-right:1px solid var(--line);background:#f7f9fc;align-content:start;gap:8px;max-height:calc(100vh - 190px);padding:12px;display:grid;overflow:auto}.slideTab{text-align:left;border:1px solid var(--line);background:#fff;border-radius:8px;gap:5px;padding:11px;display:grid}.slideTab.active{border-color:var(--primary);box-shadow:0 0 0 2px rgba(23,92,211,.12)}.slideTab strong{font-size:13px;line-height:1.35}.slideTab span{color:var(--muted);font-size:12px}.editorMain{gap:16px;padding:16px;display:grid}.editGrid{grid-template-columns:minmax(260px,390px) minmax(0,1fr);gap:16px;display:grid}.previewStage{background:#dfe7f1;border-radius:8px;min-width:0;padding:16px}.slidePreview{aspect-ratio:16/9;background:#fff;border-radius:6px;grid-template-rows:13% 1fr;width:100%;display:grid;overflow:hidden;box-shadow:0 18px 36px rgba(23,32,51,.16)}.previewCover,.previewThanks{color:#fff;background:#173e68;grid-template-rows:1fr}.previewHeader{color:#fff;background:#173e68;border-bottom:4px solid #4a90d9;justify-content:space-between;align-items:center;gap:14px;padding:0 4.2%;display:flex}.previewHeader h4{margin:0;font-size:max(13px,min(1.7vw,22px));line-height:1.2}.previewHeader span{color:#d7e8fb;font-size:11px}.previewBody{gap:3%;padding:3.8% 4.2%;display:grid}.previewBody.withFigure{grid-template-columns:43% 1fr}.bulletGrid{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:3%;display:grid}.bulletGrid.compact{grid-template-columns:1fr}.bulletCard{background:#f8fbff;border:1px solid #d8e4f2;border-radius:8px;grid-template-columns:26px 1fr;align-items:start;gap:8px;min-height:56px;padding:9px;display:grid}.bulletNo{color:var(--primary);font-size:14px;font-weight:800}.bulletText{font-size:max(9px,min(1.05vw,13px));line-height:1.45}.figureBox{border:1px solid #d8e4f2;border-radius:8px;grid-template-rows:1fr auto;gap:8px;min-width:0;padding:10px;display:grid}.figureBox img{object-fit:contain;background:#f3f7fb;width:100%;height:100%;min-height:180px}.figureCaption{color:var(--muted);text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.coverContent,.thanksContent{text-align:center;place-items:center;padding:8%;display:grid}.coverContent h4,.thanksContent h4{margin:0;font-size:max(22px,min(3.2vw,42px));line-height:1.25}.coverContent p,.thanksContent p{color:#d7e8fb;margin:18px 0 0}.figurePicker{border:1px solid var(--line);border-radius:8px;max-height:220px;overflow:auto}.figureOption{text-align:left;border-bottom:1px solid var(--line);background:#fff;grid-template-columns:54px 1fr;gap:10px;width:100%;padding:8px;display:grid}.figureOption.active{background:#eaf2ff}.figureOption img{object-fit:cover;background:#edf2f7;width:54px;height:40px}.figureOption strong{margin-bottom:3px;font-size:12px;display:block}.figureOption span{color:var(--muted);font-size:11px}.advancedToggle{text-align:left;margin-top:14px}.advancedPanel{border-top:1px solid var(--line);margin-top:10px;padding-top:2px}.emptyState{text-align:center;min-height:420px;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:8px;place-items:center;display:grid}.downloadBox{background:#effcf9;border:1px solid #b7e2d9;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px;display:flex}@media (max-width:1120px){.appShell{grid-template-columns:1fr}.sidebar{position:static}.steps{grid-template-columns:repeat(4,1fr)}.grid,.editorLayout,.editGrid{grid-template-columns:1fr}.slideList{border-right:0;border-bottom:1px solid var(--line);grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}}@media (max-width:720px){.main,.sidebar{padding:18px}.steps,.formRow,.metricGrid,.slideList{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:stretch}.actions{justify-content:flex-start}.previewBody.withFigure,.bulletGrid{grid-template-columns:1fr}}.modalMask{z-index:1000;background:rgba(15,23,42,.55);justify-content:center;align-items:center;padding:16px;animation:.16s ease-out modalFadeIn;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.modalCard{background:var(--panel);border-radius:14px;flex-direction:column;width:100%;max-width:440px;animation:.2s ease-out modalSlideIn;display:flex;overflow:hidden;box-shadow:0 24px 64px rgba(15,23,42,.25)}.modalHeader{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:18px 22px;display:flex}.modalHeader h3{color:var(--text);margin:0;font-size:16px}.modalClose{color:var(--muted);background:0 0;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;font-size:22px;line-height:1;display:inline-flex}.modalClose:hover:not(:disabled){background:var(--panel-soft);color:var(--text)}.modalBody{justify-content:center;align-items:center;min-height:180px;padding:28px 22px;display:flex}.modalState{text-align:center;flex-direction:column;align-items:center;gap:10px;display:flex}.modalSpinner{border:3px solid rgba(23,92,211,.18);border-top-color:var(--primary);border-radius:50%;width:44px;height:44px;margin-bottom:6px;animation:.8s linear infinite modalSpin}.modalIcon{color:#fff;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;margin-bottom:6px;font-size:22px;font-weight:700;display:inline-flex}.modalIcon.success{background:var(--accent)}.modalIcon.error{background:var(--danger)}.modalTitle{color:var(--text);margin:0;font-size:15px;font-weight:600}.modalDesc{color:var(--muted);word-break:break-word;margin:0;font-size:13px;line-height:1.6}.modalFooter{border-top:1px solid var(--line);justify-content:flex-end;gap:10px;padding:14px 22px 18px;display:flex}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes modalSpin{to{transform:rotate(360deg)}}
