.structured-editor{--editor-bg:#fff;--editor-text:#1f2937;--editor-text-muted:#6b7280;--editor-border:#e5e7eb;--editor-border-muted:#d1d5db;--editor-accent:#4f46e5;--editor-accent-light:#eef2ff;--editor-code-bg:#0f172a;--editor-code-text:#e5e7eb;--editor-inline-code-bg:#f3f4f6;--editor-highlight:#ffeb3b59;--editor-blockquote-border:#d1d5db;--editor-selection:#4f46e526;--editor-font-body:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--editor-font-code:"JetBrains Mono","Fira Code","Source Code Pro",Consolas,monospace;--editor-font-size:16px;--editor-line-height:1.75;--editor-max-width:720px}.dark .structured-editor,.structured-editor.dark{--editor-bg:#0f172a;--editor-text:#e5e7eb;--editor-text-muted:#9ca3af;--editor-border:#374151;--editor-border-muted:#4b5563;--editor-accent:#818cf8;--editor-accent-light:#818cf826;--editor-inline-code-bg:#1e293b;--editor-highlight:#ffeb3b40;--editor-blockquote-border:#4b5563;--editor-selection:#818cf840}.structured-editor{max-width:var(--editor-max-width);font-family:var(--editor-font-body);font-size:var(--editor-font-size);line-height:var(--editor-line-height);color:var(--editor-text);background:var(--editor-bg);margin:0 auto;padding:2rem 1rem}.structured-editor .ProseMirror{outline:none;min-height:400px}.structured-editor .ProseMirror::selection,.structured-editor .ProseMirror ::selection{background:var(--editor-selection)}.structured-editor .ProseMirror p{margin:.75em 0}.structured-editor .ProseMirror p.is-empty:before{content:attr(data-placeholder);color:var(--editor-text-muted);opacity:.6;pointer-events:none;float:left;height:0}.structured-editor .ProseMirror h1,.structured-editor .ProseMirror h2,.structured-editor .ProseMirror h3,.structured-editor .ProseMirror h4{color:var(--editor-text);font-weight:600;line-height:1.3}.structured-editor .ProseMirror h1{border-bottom:1px solid var(--editor-border);margin:1.5em 0 .6em;padding-bottom:.3em;font-size:1.9em}.structured-editor .ProseMirror h2{margin:1.3em 0 .5em;font-size:1.5em}.structured-editor .ProseMirror h3{margin:1.1em 0 .4em;font-size:1.25em}.structured-editor .ProseMirror h4{margin:1em 0 .4em;font-size:1.1em}.structured-editor .ProseMirror h1.is-empty:before,.structured-editor .ProseMirror h2.is-empty:before,.structured-editor .ProseMirror h3.is-empty:before,.structured-editor .ProseMirror h4.is-empty:before{content:attr(data-placeholder);color:var(--editor-text-muted);opacity:.5;pointer-events:none;float:left;height:0}.structured-editor .ProseMirror a,.structured-editor .ProseMirror .editor-link{color:var(--editor-accent);text-underline-offset:3px;cursor:pointer;-webkit-text-decoration:underline #4f46e566;text-decoration:underline #4f46e566;transition:text-decoration-color .15s}.structured-editor .ProseMirror a:hover{-webkit-text-decoration-color:var(--editor-accent);text-decoration-color:var(--editor-accent)}.structured-editor .ProseMirror code{background:var(--editor-inline-code-bg);font-family:var(--editor-font-code);color:var(--editor-text);border-radius:4px;padding:.15em .35em;font-size:.9em}.structured-editor .ProseMirror pre{background:var(--editor-code-bg);color:var(--editor-code-text);font-family:var(--editor-font-code);border-radius:8px;margin:1.25em 0;padding:1em 1.25em;font-size:.875em;line-height:1.6;overflow-x:auto}.structured-editor .ProseMirror pre code{color:inherit;font-size:inherit;background:0 0;border-radius:0;padding:0}.structured-editor .editor-code-block{position:relative}.structured-editor .ProseMirror blockquote{border-left:4px solid var(--editor-blockquote-border);color:var(--editor-text-muted);margin:1em 0;padding-left:1em;font-style:italic}.structured-editor .ProseMirror blockquote p{margin:.5em 0}.structured-editor .ProseMirror ul,.structured-editor .ProseMirror ol{margin:.75em 0;padding-left:1.5em}.structured-editor .ProseMirror li{margin:.25em 0}.structured-editor .ProseMirror li p{margin:0}.structured-editor .ProseMirror hr{border:none;border-top:1px solid var(--editor-border);margin:2em 0}.structured-editor .ProseMirror mark{background:var(--editor-highlight);border-radius:2px;padding:.1em .2em}.structured-editor .ProseMirror table{border-collapse:collapse;background:var(--editor-bg);border-radius:8px;width:auto;min-width:200px;margin:1.5em 0;overflow:hidden;box-shadow:0 1px 3px #0000001a}.structured-editor .ProseMirror th,.structured-editor .ProseMirror td{border:1px solid var(--editor-border);text-align:left;vertical-align:top;min-width:80px;padding:.75em 1em;position:relative}.structured-editor .ProseMirror th{background:var(--editor-inline-code-bg);color:var(--editor-text);font-weight:600}.structured-editor .ProseMirror tr:nth-child(2n) td{background:#00000005}.dark .structured-editor .ProseMirror tr:nth-child(2n) td,.structured-editor.dark .ProseMirror tr:nth-child(2n) td{background:#ffffff05}.structured-editor .ProseMirror td:hover{background:var(--editor-accent-light)}.structured-editor .ProseMirror .selectedCell{background:var(--editor-selection)!important}.structured-editor .ProseMirror .tableWrapper{margin:1.5em 0;overflow-x:auto}.structured-editor .ProseMirror .column-resize-handle{background-color:var(--editor-accent);pointer-events:none;opacity:.8;width:4px;transition:opacity .15s;position:absolute;top:0;bottom:0;right:-2px}.structured-editor .ProseMirror .resize-cursor,.structured-editor .ProseMirror table.resize-cursor,.structured-editor .ProseMirror .tableWrapper.resize-cursor{cursor:col-resize!important}.structured-editor .ProseMirror th,.structured-editor .ProseMirror td{cursor:text}.structured-editor.resizing-column,.structured-editor.resizing-column *{cursor:col-resize!important}.structured-editor .ProseMirror th:hover .column-resize-handle,.structured-editor .ProseMirror td:hover .column-resize-handle{opacity:1}.structured-editor .ProseMirror table[data-style=elegant] th,.structured-editor .ProseMirror table[data-style=elegant] td{border-color:#d1d5db}.structured-editor .ProseMirror table[data-style=elegant] th{background:#e5e7eb}.structured-editor .ProseMirror table[data-style=elegant] tr:nth-child(2n) td{background:#fafafa}.structured-editor .ProseMirror table[data-style=modern] th,.structured-editor .ProseMirror table[data-style=modern] td{border-color:#3b82f6}.structured-editor .ProseMirror table[data-style=modern] th{color:#fff;background:#3b82f6}.structured-editor .ProseMirror table[data-style=modern] tr:nth-child(2n) td{background:#eff6ff}.structured-editor .ProseMirror table[data-style=dark] th,.structured-editor .ProseMirror table[data-style=dark] td{border-color:#374151}.structured-editor .ProseMirror table[data-style=dark] th{color:#fff;background:#1f2937}.structured-editor .ProseMirror table[data-style=dark] tr:nth-child(2n) td{color:#e5e7eb;background:#111827}.structured-editor .ProseMirror table[data-style=green] th,.structured-editor .ProseMirror table[data-style=green] td{border-color:#10b981}.structured-editor .ProseMirror table[data-style=green] th{color:#fff;background:#10b981}.structured-editor .ProseMirror table[data-style=green] tr:nth-child(2n) td{background:#ecfdf5}.structured-editor .ProseMirror table[data-style=purple] th,.structured-editor .ProseMirror table[data-style=purple] td{border-color:#8b5cf6}.structured-editor .ProseMirror table[data-style=purple] th{color:#fff;background:#8b5cf6}.structured-editor .ProseMirror table[data-style=purple] tr:nth-child(2n) td{background:#faf5ff}.structured-editor pre code .hljs-comment,.structured-editor pre code .hljs-quote,.structured-editor .hljs-comment,.structured-editor .hljs-quote{color:#6b7280;font-style:italic}.structured-editor pre code .hljs-keyword,.structured-editor pre code .hljs-selector-tag,.structured-editor .hljs-keyword,.structured-editor .hljs-selector-tag{color:#c084fc;font-weight:500}.structured-editor pre code .hljs-built_in,.structured-editor .hljs-built_in{color:#38bdf8}.structured-editor pre code .hljs-title,.structured-editor pre code .hljs-title\.function_,.structured-editor pre code .hljs-title\.function,.structured-editor .hljs-title,.structured-editor .hljs-title\.function_,.structured-editor .hljs-title\.function{color:#60a5fa;font-weight:500}.structured-editor pre code .hljs-title\.class_,.structured-editor pre code .hljs-title\.class,.structured-editor pre code .hljs-class .hljs-title,.structured-editor .hljs-title\.class_,.structured-editor .hljs-title\.class,.structured-editor .hljs-class .hljs-title{color:#fbbf24;font-weight:600}.structured-editor pre code .hljs-title\.class\.inherited__,.structured-editor .hljs-title\.class\.inherited__{color:#fb923c}.structured-editor pre code .hljs-meta,.structured-editor pre code .hljs-decorator,.structured-editor .hljs-meta,.structured-editor .hljs-decorator{color:#f472b6}.structured-editor pre code .hljs-string,.structured-editor pre code .hljs-symbol,.structured-editor .hljs-string,.structured-editor .hljs-symbol{color:#34d399}.structured-editor pre code .hljs-number,.structured-editor pre code .hljs-literal,.structured-editor .hljs-number,.structured-editor .hljs-literal{color:#fb923c}.structured-editor pre code .hljs-variable\.language_,.structured-editor pre code .hljs-variable\.constant_,.structured-editor .hljs-variable\.language_,.structured-editor .hljs-variable\.constant_{color:#f472b6;font-style:italic}.structured-editor pre code .hljs-variable,.structured-editor pre code .hljs-template-variable,.structured-editor .hljs-variable,.structured-editor .hljs-template-variable{color:#e5e7eb}.structured-editor pre code .hljs-params,.structured-editor .hljs-params{color:#fcd34d}.structured-editor pre code .hljs-attr,.structured-editor pre code .hljs-attribute,.structured-editor .hljs-attr,.structured-editor .hljs-attribute{color:#a5b4fc}.structured-editor pre code .hljs-operator,.structured-editor .hljs-operator,.structured-editor pre code .hljs-punctuation,.structured-editor .hljs-punctuation{color:#94a3b8}.structured-editor pre code .hljs-regexp,.structured-editor .hljs-regexp{color:#f87171}.structured-editor pre code .hljs-tag,.structured-editor pre code .hljs-name,.structured-editor .hljs-tag,.structured-editor .hljs-name{color:#f472b6}.structured-editor pre code .hljs-section,.structured-editor .hljs-section{color:#60a5fa;font-weight:600}.structured-editor pre code .hljs-bullet,.structured-editor .hljs-bullet{color:#38bdf8}.structured-editor-toolbar{background:var(--editor-bg);border:1px solid var(--editor-border);z-index:50;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:8px;flex-wrap:wrap;align-items:center;gap:.25rem;margin-bottom:1rem;padding:.5rem .75rem;display:flex;position:sticky;top:80px;box-shadow:0 2px 8px #00000014}.structured-editor-toolbar-group{align-items:center;gap:.125rem;display:flex}.structured-editor-toolbar-divider{background:var(--editor-border);width:1px;height:1.5rem;margin:0 .5rem}.structured-editor-toolbar-btn{width:2rem;height:2rem;color:var(--editor-text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:0;transition:all .15s;display:flex}.structured-editor-toolbar-btn:hover,.structured-editor-toolbar-btn.is-active{background:var(--editor-accent-light);color:var(--editor-accent)}.structured-editor-toolbar-btn:disabled{opacity:.4;cursor:not-allowed}.structured-editor-toolbar-btn svg{width:1rem;height:1rem}.structured-editor-language-select{border:1px solid var(--editor-border);background:var(--editor-bg);color:var(--editor-text);cursor:pointer;border-radius:4px;padding:.25rem .5rem;font-size:.75rem}.structured-editor-language-select:focus{border-color:var(--editor-accent);outline:none}.structured-editor .ProseMirror .editor-image,.structured-editor .ProseMirror img{cursor:default;border-radius:8px;max-width:100%;height:auto;margin:1.25em 0;display:block}.structured-editor .ProseMirror img.ProseMirror-selectednode{outline:3px solid var(--editor-accent);outline-offset:2px}.structured-editor .ProseMirror figure{text-align:center;margin:1.25em 0}.structured-editor .ProseMirror figcaption{color:var(--editor-text-muted);margin-top:.5em;font-size:.875em;font-style:italic}
