/* Markdown编辑器样式 - 与导航栏风格一致 */
        .editor-container {
            max-width: 1400px;
            margin: 20px auto 20px;
            padding: 0 20px;
            position: relative;
        }

        .editor-title {
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #00c48c;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* 自动保存状态指示器 */
        .save-status {
            font-size: 14px;
            color: #6c757d;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .save-status i {
            font-size: 12px;
        }

        .save-status.saving {
            color: #ffc107;
        }

        .save-status.saved {
            color: #28a745;
        }

        /* 操作反馈提示 */
        .toast {
            position: fixed;
            top: 80px;
            right: 20px;
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 12px 20px;
            border-radius: 6px;
            font-size: 14px;
            z-index: 1000;
            opacity: 0;
            transform: translateY(-20px);
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        .toast.success {
            background-color: #28a745;
        }

        .toast.error {
            background-color: #dc3545;
        }

        .toast.info {
            background-color: #17a2b8;
        }

        .markdown-editor {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            overflow: visible;
            display: flex;
            flex-direction: column;
        }

        .editor-toolbar {
            background-color: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
            padding: 10px 15px;
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }

        .toolbar-btn {
            background-color: #fff;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 6px 10px;
            cursor: pointer;
            color: #495057;
            font-size: 14px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .toolbar-btn:hover {
            background-color: #00c48c;
            color: #fff;
            border-color: #00c48c;
            box-shadow: 0 4px 12px rgba(0, 196, 140, 0.3);
        }

        .toolbar-btn:active {
            background-color: #00a074;
            transform: translateY(0);
        }

        .toolbar-btn i {
            font-size: 12px;
        }

        .editor-main {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            /* height: 70vh; */
            min-height: 500px;
            overflow: hidden;
        }

        .editor-section {
            padding: 15px;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .editor-section h3 {
            margin-top: 0;
            margin-bottom: 12px;
            font-size: 16px;
            color: #495057;
            font-weight: 500;
        }

        .editor-area {
            width: 100%;
            height: 500px;
            min-height: 400px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 15px;
            font-size: 14px;
            line-height: 1.6;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            resize: vertical;
            outline: none;
            transition: all 0.3s ease;
            background-color: #fff;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
            overflow-y: auto;
        }

        .editor-area:focus {
            border-color: #00c48c;
            box-shadow: 0 0 0 3px rgba(0, 196, 140, 0.2);
            background-color: #fafafa;
        }

        .preview-section {
            background-color: #f8f9fa;
        }

        /* 预览区样式增强 */
        .preview-with-toc {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            /* margin-bottom: 12px; */
        }

        .preview-area {
            width: 100%;
            height: 500px;
            min-height: 400px;
            background-color: #fff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 15px;
            overflow-y: auto;
            font-size: 14px;
            line-height: 1.6;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        }

        .preview-area h1 {
            font-size: 24px;
            font-weight: 600;
            margin: 1.5em 0 0.5em;
            padding-bottom: 0.3em;
            border-bottom: 2px solid #00c48c;
            color: #333;
        }

        .preview-area h2 {
            font-size: 20px;
            font-weight: 600;
            margin: 1.2em 0 0.5em;
            padding-bottom: 0.3em;
            border-bottom: 1px solid #00c48c;
            color: #333;
        }

        .preview-area h3 {
            font-size: 18px;
            font-weight: 600;
            margin: 1em 0 0.5em;
            color: #333;
        }

        .preview-area h4 {
            font-size: 16px;
            font-weight: 600;
            margin: 0.8em 0 0.5em;
            color: #333;
        }

        .preview-area h5 {
            font-size: 15px;
            font-weight: 600;
            margin: 0.8em 0 0.5em;
            color: #333;
        }

        .preview-area h6 {
            font-size: 14px;
            font-weight: 600;
            margin: 0.8em 0 0.5em;
            color: #333;
        }

        .preview-area p {
            margin: 0.8em 0;
        }

        .preview-area ul,
        .preview-area ol {
            margin: 0.8em 0;
            padding-left: 2em;
        }

        .preview-area li {
            margin: 0.3em 0;
            color: #495057;
        }

        .preview-area code {
            background-color: rgba(0, 196, 140, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
            font-size: 85%;
            color: #00c48c;
            border: 1px solid rgba(0, 196, 140, 0.2);
        }

        .preview-area pre {
            background-color: #f8f9fa;
            padding: 16px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 0.8em 0;
            border: 1px solid #dee2e6;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .preview-area pre code {
            background-color: transparent;
            padding: 0;
        }

        .preview-area blockquote {
            border-left: 4px solid #00c48c;
            padding: 12px 16px;
            color: #495057;
            margin: 0.8em 0;
            background-color: rgba(0, 196, 140, 0.05);
            border-radius: 0 8px 8px 0;
            font-style: italic;
        }

        .preview-area table {
            border-collapse: collapse;
            width: 100%;
            margin: 0.8em 0;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .preview-area table th,
        .preview-area table td {
            border: 1px solid #dee2e6;
            padding: 10px 16px;
            text-align: left;
            color: #495057;
        }

        .preview-area table th {
            background-color: #00c48c;
            font-weight: 600;
            color: #fff;
        }

        .preview-area table tr:nth-child(2n) {
            background-color: rgba(0, 196, 140, 0.05);
        }

        .preview-area table tr:hover {
            background-color: rgba(0, 196, 140, 0.1);
        }

        .preview-area a {
            color: #00c48c;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .preview-area a:hover {
            color: #00a074;
            text-decoration: underline;
        }

        /* 高亮文本 */
        .preview-area mark {
            background-color: #fff3cd;
            color: #856404;
            padding: 0.2em 0.4em;
            border-radius: 3px;
        }

        /* 上标和下标 */
        .preview-area sup,
        .preview-area sub {
            font-size: 75%;
            line-height: 0;
            position: relative;
            vertical-align: baseline;
        }

        .preview-area sup {
            top: -0.5em;
        }

        .preview-area sub {
            bottom: -0.25em;
        }

        /* 任务列表 */
        .preview-area .task-item {
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .preview-area .task-item input[type="checkbox"] {
            margin-top: 5px;
            cursor: default;
        }

        /* 脚注 */
        .preview-area .footnote {
            margin-left: 2px;
        }

        .preview-area .footnotes {
            margin-top: 30px;
            padding-top: 15px;
            font-size: 13px;
        }

        .preview-area .footnotes hr {
            margin-bottom: 15px;
            border-color: #e9ecef;
        }

        .preview-area .footnotes ol {
            padding-left: 25px;
        }

        .preview-area .footnotes li {
            margin-bottom: 8px;
        }

        .editor-actions {
            padding: 15px;
            background-color: #f8f9fa;
            border-top: 1px solid #e9ecef;
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            position: relative;
            z-index: 10;
        }

        .action-btn {
            background-color: #00c48c;
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 9px 18px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
        }

        .action-btn:hover {
            background-color: #00a074;
            box-shadow: 0 4px 12px rgba(0, 196, 140, 0.3);
        }

        .action-btn:active {
            background-color: #008a61;
            transform: translateY(0);
        }

        .action-btn.secondary {
            background-color: #6c757d;
        }

        .action-btn.secondary:hover {
            background-color: #5a6268;
            box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
        }

        .action-btn.secondary:active {
            background-color: #495057;
            transform: translateY(0);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .editor-container {
                padding: 0 16px;
            }

            .editor-main {
                grid-template-columns: 1fr;
                height: auto;
                min-height: 400px;
            }

            .editor-section {
                margin-bottom: 0;
            }

            .editor-area {
                height: 350px;
            }

            .preview-area {
                height: 350px;
            }

            .editor-toolbar {
                padding: 8px;
            }

            .toolbar-btn {
                padding: 5px 8px;
                font-size: 13px;
            }

            .action-btn {
                padding: 8px 16px;
                font-size: 13px;
            }

            .editor-actions {
                justify-content: center;
            }
        }