.pptx-editor { --pptx-line: #dedfe3; --pptx-muted: #6a6f7b; --pptx-accent: #2563d9; height: 100dvh; min-height: 440px; color: #2a2d34; background: #ececee; }
.pptx-editor *, .pptx-editor *::before, .pptx-editor *::after { box-sizing: border-box; }
.pptx-editor .ed-toolbar { display: flex; min-height: 52px; padding-block: 8px; background: #fff; gap: 14px; border-bottom: 1px solid var(--pptx-line); }
.pptx-editor .ed-toolbar-start { min-width: 120px; }
.pptx-editor .ed-filename { max-width: 280px; font-size: 13px; }
.pptx-editor .ed-toolbar-center { flex: 1; justify-content: center; }
.ed-shell.pptx-editor .ed-canvas-card { width: 100%; min-width: 0; max-width: none; min-height: 0; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; height: 100%; }
.ed-shell.pptx-editor .ed-stage { padding: 0; min-width: 0; overflow: hidden; display: block; }
.pptx-editor .ed-workspace { min-height: 0; flex: 1; overflow: hidden; }
.ed-shell.pptx-editor .ed-sidebar { width: 216px; flex: 0 0 216px; background: #f6f6f7; border-right: 1px solid var(--pptx-line); padding: 0; overflow-y: auto; scrollbar-width: thin; }
.pptx-editor .ed-sidebar-content { padding: 0; }
.pptx-rail-heading { padding: 14px 16px 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #9499a6; }
.pptx-slide-tools { display: flex; gap: 5px; padding: 0 16px 12px; }
.pptx-thumbnails { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 24px; }
.pptx-thumbnail { display: flex; align-items: flex-start; gap: 8px; border: 0; border-radius: 8px; background: transparent; color: #8b909c; cursor: pointer; padding: 8px 8px 8px 6px; text-align: left; }
.pptx-thumbnail:hover { background: #ececef; }
.pptx-thumbnail[aria-current="true"] { background: #e2e8f6; }
.pptx-thumbnail-number { flex: 0 0 18px; padding-top: 2px; font: 500 11px/18px var(--ed-font); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pptx-thumbnail-preview { width: 152px; flex: 0 0 152px; overflow: hidden; position: relative; border: 2px solid transparent; border-radius: 5px; background: white; box-shadow: 0 0 0 1px #00000014, 0 1px 3px #0000001a; }
.pptx-thumbnail[aria-current="true"] .pptx-thumbnail-preview { border-color: var(--pptx-accent); box-shadow: none; }
.pptx-thumbnail[aria-current="true"] .pptx-thumbnail-number { color: #1d4fb3; font-weight: 650; }
.pptx-mini-slide { position: absolute; top: 0; left: 0; transform-origin: top left; pointer-events: none; overflow: hidden; color: #173e45; }
.pptx-tools, .pptx-actions { display: flex; align-items: center; gap: 6px; }
.pptx-tool { border: 1px solid transparent; background: transparent; border-radius: 6px; min-width: 30px; height: 32px; padding: 0 8px; color: inherit; cursor: pointer; font: inherit; font-size: 13px; }
.pptx-tool:hover:not(:disabled) { background: #ececef; }
.pptx-tool[aria-pressed="true"] { background: #e7efff; color: #1c5ec4; }
.pptx-tool:disabled { opacity: .35; cursor: default; }
.pptx-tool:focus-visible, .pptx-thumbnail:focus-visible, .pptx-editor input:focus-visible, .pptx-editor select:focus-visible { outline: 2px solid #3478ed; outline-offset: 2px; }
.pptx-actions .pptx-tool { padding: 0 12px; border-color: var(--pptx-line); border-radius: 8px; white-space: nowrap; }
.pptx-actions [aria-label="Present"] { background: #0c1130; border-color: #0c1130; color: white; padding: 0 14px; }
.pptx-actions [aria-label="Present"]:hover:not(:disabled) { background: #262d49; border-color: #262d49; }
.pptx-bold { font-weight: 700; }
.pptx-italic { font-style: italic; }
.pptx-font-size { width: 54px; height: 29px; border: 1px solid #dce1e8; border-radius: 4px; padding: 3px; background: #fff; color: inherit; }
.pptx-color { border: 0; padding: 2px; width: 29px; height: 28px; background: transparent; }
.pptx-alignment { border: 1px solid #dce1e8; border-radius: 4px; height: 29px; background: #fff; color: inherit; }
.pptx-content { display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; width: 100%; }
.pptx-viewport { flex: 1; min-height: 180px; min-width: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pptx-frame { position: relative; flex-shrink: 0; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px #0000000f, 0 2px 6px #0000001a, 0 16px 40px -16px #00000038; }
.pptx-slide { position: absolute; top: 0; left: 0; transform-origin: top left; overflow: hidden; background: white; color: #173e45; }
.pptx-shape { position: absolute; overflow: hidden; transform-origin: center; background-position: center; background-size: cover; }
.pptx-shape[contenteditable] { padding: 4px 9.6px; outline: none; white-space: pre-wrap; overflow-wrap: break-word; cursor: text; }
.pptx-shape[contenteditable="false"] { cursor: default; }
.pptx-shape-autoshape { border-radius: 10px; }
.pptx-shape.is-selected[contenteditable="true"] { outline: 2px solid #3478ed; outline-offset: 2px; }
.pptx-paragraph { margin: 0; line-height: 1.2; min-height: 1em; }
.pptx-picture { width: 100%; height: 100%; display: block; object-fit: cover; }
.pptx-table { border-collapse: collapse; table-layout: fixed; width: 100%; height: 100%; }
.pptx-table td { border: 1px solid #cedbd7; padding: 4px 8px; vertical-align: top; background: #e9f0ec; }
.pptx-table tr:first-of-type td { background: #d4e3db; }
.pptx-notes { flex: 0 0 auto; border-top: 1px solid var(--pptx-line); background: #fff; }
.pptx-notes-heading { padding: 9px 24px; color: var(--pptx-muted); font-size: 12px; cursor: pointer; font-weight: 600; }
.pptx-notes-heading:hover { color: #2a2d34; }
.pptx-notes-input { display: block; width: 100%; height: 64px; padding: 0 24px 14px; border: 0; resize: vertical; min-height: 50px; max-height: 220px; color: #3d414b; background: transparent; font: 13px/1.6 var(--ed-font); outline-offset: -3px; }
.pptx-status { color: #627283; font-size: 11px; margin-left: 16px; }
.pptx-statistics { font-size: 11px; color: #627283; }
.pptx-present-controls { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 7px 10px; border-radius: 9px; background: #1e2535e8; color: white; box-shadow: 0 4px 18px #0005; font: 12px system-ui, sans-serif; z-index: 20; }
.pptx-editor [hidden] { display: none !important; }
.pptx-editor[data-presenting="true"] { position: fixed; inset: 0; width: 100%; height: 100%; background: #090c12; }
.pptx-editor[data-presenting="true"] .ed-toolbar, .pptx-editor[data-presenting="true"] .ed-sidebar, .pptx-editor[data-presenting="true"] .ed-statusbar, .pptx-editor[data-presenting="true"] .pptx-notes { display: none; }
.pptx-editor[data-presenting="true"] .ed-stage, .pptx-editor[data-presenting="true"] .ed-workspace { background: #090c12; }
.pptx-editor[data-presenting="true"] .pptx-frame { box-shadow: none; }
@media (max-width: 1050px) { .pptx-editor .ed-toolbar { flex-wrap: wrap; padding: 10px 14px; gap: 8px; } .pptx-editor .ed-toolbar-center { order: 3; flex-basis: 100%; } .pptx-editor .ed-toolbar-end { margin-left: auto; } .pptx-editor .ed-filename { max-width: 200px; } }
@media (max-width: 700px) { .pptx-editor .ed-toolbar { gap: 8px; padding: 10px; } .pptx-editor .ed-toolbar-start { width: 100%; } .pptx-editor .ed-toolbar-center { order: 3; } .pptx-editor .ed-toolbar-end { width: 100%; justify-content: space-between; margin: 0; } .pptx-editor .ed-filename { max-width: 250px; } .ed-shell.pptx-editor .ed-sidebar { width: 216px; } .pptx-viewport { min-height: 200px; } .pptx-notes-input { height: 120px; } .pptx-notes-heading { padding-left: 18px; } .pptx-notes-input { padding-left: 18px; } .pptx-status { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

.pptx-bullet::before { content: attr(data-bullet); }

.pptx-editor[data-presenting="true"]:focus { outline: none; }

.pptx-editor .ed-statusbar { min-height: 28px; padding-block: 3px; border-top-color: var(--pptx-line); color: var(--pptx-muted); }
.pptx-editor .ed-segmented { border-radius: 8px; }

/* —— 直接体验：没有第二层顶栏。Present 在画布右上角；文字格式条只在选中文本框时浮出，可拖动、可关闭；缩略图直接拖动排序。—— */
.pptx-direct { position: relative; }
.pptx-direct .ed-toolbar { display: contents; }
.pptx-direct .ed-toolbar-start { position: absolute; top: 8px; left: 8px; z-index: 21; min-width: 0; }
.pptx-direct .ed-toolbar-end { position: absolute; top: 12px; right: 16px; z-index: 20; margin: 0; }
.pptx-direct .ed-toolbar-center { display: none; }
.pptx-direct .ed-toolbar-start .ed-pill, .pptx-direct .ed-toolbar-end .ed-segmented, .pptx-direct .pptx-actions [aria-label="Save"] { display: none; }
.pptx-direct .ed-toolbar-start .ed-icon-button { background: transparent; }
.pptx-direct .ed-toolbar-start .ed-icon-button:hover { background: #e4e5e9; }
.pptx-direct .pptx-actions [aria-label="Present"] { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; box-shadow: 0 2px 8px #0c11302e; }
.pptx-direct .pptx-rail-heading { padding: 15px 16px 16px 46px; }
.pptx-direct .pptx-content { position: relative; }
.pptx-direct .pptx-status { display: none; }
.ed-direct:has(.pptx-direct) .ed-host-corner { top: 16px; right: 132px; }
.pptx-floatbar { position: absolute; z-index: 20; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #0c113014, 0 2px 6px #0c113014, 0 14px 32px -12px #0c113052; white-space: nowrap; }
.pptx-floatbar .pptx-tools { gap: 2px; }
.pptx-floatbar-grip { flex: none; width: 16px; height: 30px; border: 0; border-radius: 6px; background: radial-gradient(circle, #b3b7c2 1.2px, transparent 1.6px) center / 6px 6px; cursor: grab; touch-action: none; }
.pptx-floatbar-grip:hover { background-color: #f0f1f3; }
.pptx-floatbar-grip:active { cursor: grabbing; }
.pptx-floatbar-close { flex: none; width: 26px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #8b909c; font: 18px/1 var(--ed-font); cursor: pointer; }
.pptx-floatbar-close:hover { background: #f0f1f3; color: #2a2d34; }
.pptx-glyph { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pptx-thumbnail[draggable="true"] { cursor: grab; }
.pptx-thumbnail.is-dragging { opacity: .4; }
.pptx-thumbnail.is-drop-before { box-shadow: 0 -2px 0 0 var(--pptx-accent); }
.pptx-thumbnail.is-drop-after { box-shadow: 0 2px 0 0 var(--pptx-accent); }
[data-ed-can-edit="true"] .pptx-direct .pptx-shape[role="textbox"] { cursor: text; }
[data-ed-can-edit="true"] .pptx-direct .pptx-shape[role="textbox"]:hover { outline: 1px dashed #2563d980; outline-offset: 2px; }
.pptx-direct[data-presenting="true"] :is(.ed-toolbar-start, .ed-toolbar-end, .pptx-floatbar) { display: none; }
@media (max-width: 700px) { .pptx-floatbar { max-width: calc(100% - 16px); overflow-x: auto; } }
.pptx-direct:not([data-presenting="true"]) .pptx-viewport { padding-top: 40px; }
