.macro-presentation-editor{--editor-primary:#283593;--editor-line:#dfe3ec;--editor-text:#2f3545;position:absolute;z-index:30;inset:0;display:grid;grid-template-rows:52px minmax(0,1fr) 42px;background:#e8ebf2;color:var(--editor-text);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;overflow:hidden}
.macro-editor-toolbar{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid #cfd4df;background:#f8f9fb;box-shadow:0 2px 8px rgba(24,31,68,.08)}
.macro-editor-group{display:flex;align-items:center;gap:5px}.macro-editor-group+.macro-editor-group{padding-left:8px;border-left:1px solid #d9dde6}.macro-editor-spacer{flex:1}.macro-editor-toolbar button,.macro-editor-footer button,.macro-editor-slides button,.macro-editor-inspector button,.macro-editor-dialog button{border:1px solid #d1d6e1;border-radius:7px;background:#fff;color:#475067;padding:7px 9px;font:700 12px/1 inherit;cursor:pointer}.macro-editor-toolbar button:hover,.macro-editor-inspector button:hover{border-color:#9ea8d2;color:#283593}.macro-editor-toolbar button:disabled{opacity:.35;cursor:default}.macro-editor-toolbar .is-primary,.macro-editor-dialog .is-primary{border-color:#283593;background:#283593;color:#fff}.macro-editor-toolbar .is-publish,.macro-editor-dialog .is-publish{border-color:#1d7b54;background:#1d7b54;color:#fff}.macro-editor-object-actions button{font-size:15px}.macro-editor-status{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#697184;font-size:15px}.macro-editor-status[data-state="saved"]{color:#19734e}.macro-editor-status[data-state="error"]{color:#b3363c}.macro-editor-status[data-state="saving"]{color:#9b6b12}
.macro-editor-workspace{display:grid;grid-template-columns:238px minmax(0,1fr) 320px;min-height:0}.macro-presentation-editor.slides-collapsed .macro-editor-workspace{grid-template-columns:0 minmax(0,1fr) 320px}.macro-presentation-editor.slides-collapsed .macro-editor-slides{visibility:hidden}
.macro-editor-slides{min-width:0;border-right:1px solid #d7dbe5;background:#f6f7fa;overflow:auto;transition:width .2s ease}.macro-editor-slides>header{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;padding:10px 11px;border-bottom:1px solid var(--editor-line);background:#f6f7fa}.macro-editor-slides>header strong{font-size:15px}.macro-editor-slides>div{display:grid;gap:6px;padding:8px}.macro-editor-slides article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:center;padding:5px;border:1px solid transparent;border-radius:8px;background:#fff}.macro-editor-slides article.is-current{border-color:#6e79bd;background:#eef0ff}.macro-editor-slides article.is-hidden{opacity:.48}.macro-editor-slides [data-editor-go-slide]{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:7px;min-width:0;padding:5px;border:0;background:transparent;text-align:left}.macro-editor-slides [data-editor-go-slide] i{color:#9ca3b3;font:800 12px/1 inherit}.macro-editor-slides [data-editor-go-slide] span{overflow:hidden;color:#485066;font-size:15px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.macro-editor-slides [data-editor-toggle-hidden]{padding:5px;font-size:15px}
.macro-editor-viewport{min-width:0;min-height:0;overflow:auto;background-color:#dfe3eb;background-image:linear-gradient(rgba(255,255,255,.32) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.32) 1px,transparent 1px);background-size:24px 24px}.macro-editor-canvas-wrap{position:relative;margin:24px auto}.macro-editor-canvas{position:absolute;left:0;top:0;width:1600px;height:900px;transform-origin:left top;background:#fff;box-shadow:0 12px 35px rgba(20,28,60,.2)}.macro-editor-canvas .macro-present-slide{width:1600px;height:900px}.macro-editor-canvas [contenteditable="true"]{outline:1px dashed transparent;cursor:text}.macro-editor-canvas [contenteditable="true"]:hover{outline-color:#8792c7}.macro-editor-canvas [contenteditable="true"].is-editing{outline:3px solid rgba(40,53,147,.35);background:rgba(238,240,255,.45)}.macro-editor-chart-placeholder{display:grid;place-items:center;height:100%;color:#8b92a0;font-size:16px}
.macro-editor-canvas .macro-present-free-object{pointer-events:auto;cursor:move}.macro-editor-canvas .macro-present-free-object.is-selected{overflow:visible;outline:3px solid #5262b0;box-shadow:0 0 0 1px #fff}.macro-editor-canvas .macro-present-free-object[contenteditable="true"]{cursor:text;overflow:hidden}.macro-editor-handle{position:absolute;z-index:5;width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:#3949ab;box-shadow:0 0 0 1px #3949ab}.macro-editor-handle.is-n{left:50%;top:-8px;transform:translateX(-50%);cursor:ns-resize}.macro-editor-handle.is-ne{right:-8px;top:-8px;cursor:nesw-resize}.macro-editor-handle.is-e{right:-8px;top:50%;transform:translateY(-50%);cursor:ew-resize}.macro-editor-handle.is-se{right:-8px;bottom:-8px;cursor:nwse-resize}.macro-editor-handle.is-s{left:50%;bottom:-8px;transform:translateX(-50%);cursor:ns-resize}.macro-editor-handle.is-sw{left:-8px;bottom:-8px;cursor:nesw-resize}.macro-editor-handle.is-w{left:-8px;top:50%;transform:translateY(-50%);cursor:ew-resize}.macro-editor-handle.is-nw{left:-8px;top:-8px;cursor:nwse-resize}
.macro-editor-inspector{min-width:0;border-left:1px solid #d7dbe5;background:#fff;overflow:auto}.macro-editor-inspector>header{position:sticky;z-index:2;top:0;padding:12px 14px;border-bottom:1px solid var(--editor-line);background:#fff}.macro-editor-inspector>header span,.macro-editor-object-panel header span{display:block;color:#7d86b9;font-size:15px;font-weight:850;letter-spacing:.1em}.macro-editor-inspector>header strong{display:block;margin-top:4px;overflow:hidden;color:#343b50;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.macro-editor-fields,.macro-editor-list,.macro-editor-object-panel{padding:12px 14px;border-bottom:1px solid #eceef3}.macro-editor-fields{display:grid;gap:10px}.macro-editor-inspector label{display:grid;gap:5px;color:#798092;font-size:15px;font-weight:750}.macro-editor-inspector input,.macro-editor-inspector textarea,.macro-editor-auth input,.macro-editor-dialog input{box-sizing:border-box;width:100%;border:1px solid #d9dde6;border-radius:7px;background:#fafbfc;color:#3e4659;padding:8px 9px;font:500 12px/1.45 inherit;resize:vertical}.macro-editor-inspector input:focus,.macro-editor-inspector textarea:focus{outline:2px solid rgba(40,53,147,.18);border-color:#7f89c0}.macro-editor-list>header,.macro-editor-object-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.macro-editor-list>header strong,.macro-editor-object-panel>header strong,.macro-editor-crop>strong{font-size:15px;color:#4a5266}.macro-editor-list>header button{padding:5px 7px;font-size:15px}.macro-editor-list>div{display:grid;gap:6px;margin-top:9px}.macro-editor-list article{display:grid;grid-template-columns:1fr auto;gap:5px}.macro-editor-list article>div{display:grid;gap:3px}.macro-editor-list article button{padding:4px 5px;font-size:15px}.macro-editor-list p{margin:0;color:#a0a6b2;font-size:15px}.macro-editor-field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px}.macro-editor-object-panel>label{margin-top:9px}.macro-editor-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;margin-top:8px}.macro-editor-check input{width:auto}.macro-editor-crop{display:grid;gap:5px;margin-top:10px;padding:8px;border-radius:7px;background:#f6f7fa}.macro-editor-crop label{grid-template-columns:18px 1fr;align-items:center}.macro-editor-crop input{padding:0}
.macro-editor-footer{display:flex;align-items:center;justify-content:space-between;padding:5px 14px;border-top:1px solid #cfd4df;background:#f8f9fb;color:#747c8e;font-size:15px}.macro-editor-footer>div{display:flex;align-items:center;gap:6px}.macro-editor-footer input{width:150px}.macro-editor-footer button{padding:5px 8px}.macro-editor-footer b{min-width:42px;color:#3d4668;text-align:right}
.macro-editor-auth,.macro-editor-dialog{position:absolute;z-index:50;inset:0;display:grid;place-items:center;background:rgba(18,23,49,.48);backdrop-filter:blur(2px)}.macro-editor-auth[hidden],.macro-editor-dialog[hidden]{display:none}.macro-editor-auth form,.macro-editor-dialog form{width:min(410px,calc(100vw - 40px));padding:28px;border-radius:15px;background:#fff;box-shadow:0 24px 70px rgba(15,20,52,.28)}.macro-editor-auth form>span{color:#6370af;font-size:15px;font-weight:850;letter-spacing:.12em}.macro-editor-auth h2,.macro-editor-dialog h3{margin:8px 0 0;color:#26305f;font-size:24px}.macro-editor-auth p,.macro-editor-dialog p{margin:9px 0 16px;color:#737b8d;font-size:15px;line-height:1.6}.macro-editor-auth label,.macro-editor-dialog label{display:grid;gap:6px;color:#596174;font-size:15px;font-weight:750}.macro-editor-auth form>button{width:100%;margin-top:15px;border:0;border-radius:8px;background:#283593;color:#fff;padding:11px;font:800 14px/1 inherit}.macro-editor-auth small{display:block;min-height:18px;margin-top:9px;color:#b3363c;font-size:15px}.macro-editor-dialog form>div{display:flex;justify-content:flex-end;gap:7px;margin-top:16px}
.macro-presentation-editor.is-preview{grid-template-rows:0 minmax(0,1fr) 0}.macro-presentation-editor.is-preview .macro-editor-toolbar,.macro-presentation-editor.is-preview .macro-editor-footer,.macro-presentation-editor.is-preview .macro-editor-slides,.macro-presentation-editor.is-preview .macro-editor-inspector{visibility:hidden}.macro-presentation-editor.is-preview .macro-editor-workspace{grid-template-columns:0 minmax(0,1fr) 0}.macro-presentation-editor.is-preview .macro-editor-viewport{background:#e9ecf3}
@media(max-width:1180px){.macro-editor-workspace{grid-template-columns:190px minmax(0,1fr) 280px}.macro-editor-toolbar{overflow-x:auto}.macro-editor-toolbar button{white-space:nowrap}.macro-editor-object-actions{display:none}}
@media(max-width:900px){.macro-presentation-editor::after{content:"请使用电脑编辑；手机端继续提供只读演示。";position:absolute;z-index:100;inset:0;display:grid;place-items:center;padding:30px;background:#eef0f5;color:#343b50;font-size:18px;font-weight:800;text-align:center}}
@media(prefers-reduced-motion:reduce){.macro-editor-slides{transition:none}}
