
        :root {
            --primary-color: #2563eb;
            --primary-light: #eff6ff;
            --border-color: #e2e8f0;
            --border-hover: #cbd5e1;
            --text-main: #1e293b;
            --text-secondary: #64748b;
            --bg-body: #f1f5f9;
            --paper-bg: #ffffff;
            --legal-font: "STSong", "SimSun", "Songti SC", serif;
            --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            background-color: var(--bg-body);
            display: flex;
            min-height: 100vh;
            color: var(--text-main);
            font-family: var(--ui-font);
            overflow-x: hidden;
        }

        /* --- 现代化高级侧边配置抽屉 --- */
        .sidebar {
            width: 400px;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(16px);
            border-right: 1px solid var(--border-color);
            padding: 28px;
            position: fixed;
            top: 0;
            left: -400px;
            height: 100%;
            z-index: 2000;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 15px 0 40px rgba(15, 23, 42, 0.06);
            display: flex;
            flex-direction: column;
        }
        .sidebar.active { left: 0; }
        body.sidebar-open .main-content { margin-left: 400px; }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 14px;
        }
        .sidebar-header h2 { font-size: 18px; font-weight: 700; color: var(--text-main); }
        .close-btn {
            width: 32px; height: 32px; border-radius: 50%; display: flex;
            align-items: center; justify-content: center; cursor: pointer;
            color: var(--text-secondary); transition: all 0.2s;
        }
        .close-btn:hover { background: var(--primary-light); color: var(--primary-color); }

        .sidebar-scroll-content { flex: 1; overflow-y: auto; padding-right: 4px; }
        .sidebar-title { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--text-secondary); margin: 20px 0 10px 2px; letter-spacing: 0.5px; }

        /* 极简单选框组件 */
        .radio-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
        .radio-item {
            padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border-color);
            background: white; display: flex; align-items: center; gap: 10px;
            cursor: pointer; transition: all 0.2s ease; font-size: 14px; color: #334155;
        }
        .radio-item:hover { border-color: var(--primary-color); background: var(--primary-light); }
        .radio-item input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary-color); }

        .preview-box {
            background: #f8fafc; border-radius: 8px; padding: 14px; font-size: 13px;
            line-height: 1.6; color: #475569; border-left: 4px solid var(--primary-color);
            margin-bottom: 20px; white-space: pre-wrap; font-family: var(--legal-font);
        }
        .btn-confirm {
            background: var(--primary-color); color: white; border: none; padding: 12px;
            border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); transition: all 0.2s;
        }
        .btn-confirm:hover { background: #1d4ed8; transform: translateY(-1px); }

        /* --- 主内容区及高仿 A4 纸张 --- */
        .main-content { flex: 1; padding: 40px 20px; display: flex; justify-content: center; transition: margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
        .paper {
            background: var(--paper-bg); width: 100%; max-width: 920px; min-height: 1200px;
            padding: 70px 90px; position: relative; border-radius: 4px;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 12px 30px rgba(0,0,0,0.04);
            font-family: var(--legal-font); color: #000;
        }

        /* 装饰角标与工具 */
        .corner-mark { position: absolute; width: 24px; height: 24px; border-color: #cbd5e1; border-style: solid; border-width: 0; }
        .top-left { top: 35px; left: 35px; border-top-width: 1px; border-left-width: 1px; }
        .top-right { top: 35px; right: 35px; border-top-width: 1px; border-right-width: 1px; }
        .import-word {
            position: absolute; top: 32px; left: 90px; background: white;
            border: 1px solid var(--border-color); padding: 5px 12px; font-size: 12px;
            border-radius: 6px; color: var(--text-secondary); cursor: pointer; font-family: var(--ui-font);
        }
        .import-word:hover { border-color: var(--primary-color); color: var(--primary-color); }

        .doc-title { text-align: center; font-size: 30px; font-weight: 700; margin-bottom: 45px; letter-spacing: 5px; }
        .form-section { margin-bottom: 26px; position: relative; }
        .section-label { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: block; }

        /* 未选择状态触发框 */
        .clickable-box {
            border: 1px dashed var(--border-hover); background-color: #f8fafc;
            border-radius: 8px; padding: 14px 18px; color: var(--text-secondary);
            font-size: 14px; cursor: pointer; display: flex; justify-content: space-between;
            align-items: center; transition: all 0.2s; font-family: var(--ui-font);
        }
        .clickable-box:hover { border-style: solid; border-color: var(--primary-color); background-color: var(--primary-light); color: var(--primary-color); }

        /* 原版主体配置表单正文框（完美保留形式与嵌套） */
        .detail-form-box {
            border: 1px solid var(--border-color); border-radius: 8px; padding: 20px;
            background-color: #f8fafc; position: relative; font-family: var(--ui-font);
        }
        .form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; line-height: 1.6; color: #334155; }
        .form-row:last-child { margin-bottom: 0; }

        /* 表单内部轻量化控件 */
        .input-inline {
            border: 1px solid var(--border-color); border-radius: 6px; padding: 6px 10px;
            font-size: 14px; outline: none; background: white; transition: all 0.15s;
            color: var(--text-main); font-family: var(--ui-font);
        }
        .input-inline:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); }
        select.input-inline { cursor: pointer; padding-right: 20px; }

        /* 纸张正文下划线填空框 */
        .inline-blank-input {
            border: none !important; border-bottom: 1px solid #64748b !important;
            padding: 0 4px !important; text-align: center; background: transparent !important;
            outline: none; color: #1e3a8a; font-weight: 700; font-size: 16px;
            transition: all 0.15s; font-family: var(--ui-font);
        }
        .inline-blank-input:focus { border-bottom-width: 2px !important; border-bottom-color: var(--primary-color) !important; background: rgba(37,99,235,0.03) !important; }

        /* 功能小按钮及侧边操作轨道 */
        .inline-icon-btn { color: var(--primary-color); cursor: pointer; font-size: 15px; margin-left: 4px; transition: opacity 0.2s; }
        .inline-icon-btn:hover { opacity: 0.8; }
        .inline-icon-btn.minus { color: #ef4444; }

        .contact-chain-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
        .contact-secondary { display: inline-flex; align-items: center; gap: 2px; }
        .contact-remove-btn { transition: transform 0.15s, background 0.15s; user-select: none; }
        .contact-remove-btn:hover { background: #fecaca !important; transform: scale(1.1); }
        .add-contact-btn { transition: transform 0.15s; }
        .add-contact-btn:hover { transform: scale(1.15); }

        .side-action-track { position: absolute; right: -42px; top: 16px; display: flex; flex-direction: column; gap: 8px; }
        .circle-action-btn {
            width: 28px; height: 28px; border-radius: 50%; background: white;
            border: 1px solid var(--border-color); color: var(--text-secondary);
            display: flex; align-items: center; justify-content: center; cursor: pointer;
            font-size: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: all 0.2s;
        }
        .circle-action-btn:hover { color: var(--primary-color); border-color: var(--primary-color); transform: scale(1.05); }
        .circle-action-btn.danger:hover { color: #ef4444; border-color: #fca5a5; }

        /* 渲染出的诉讼请求样式 */
        .rendered-claims-box {
            border: 1px solid #cbd5e1; border-radius: 8px; padding: 22px;
            background-color: #fff; font-family: var(--legal-font); font-size: 16px;
            line-height: 2.2; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.01);
        }
        .btn-reset-claims { position: absolute; top: 16px; right: 16px; font-family: var(--ui-font); }

        /* 文本域及其他标准正文项 */
        .input-block-field {
            width: 100%; border: 1px solid var(--border-color); border-radius: 8px;
            padding: 14px; font-size: 16px; outline: none; background: #f8fafc;
            transition: all 0.15s; font-family: var(--legal-font); line-height: 1.7; color: #000;
        }
        .input-block-field:focus { border-color: var(--primary-color); background: white; box-shadow: 0 0 0 3px var(--primary-light); }

        .legal-declaration { margin-top: 40px; font-size: 16px; line-height: 2; text-indent: 2em; }
        .salutation { margin-top: 16px; font-size: 16px; font-weight: 700; margin-bottom: 30px; }
        .court-row { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid #000; }
        .court-row input { border: none; outline: none; font-size: 16px; font-family: var(--legal-font); width: 160px; font-weight: 700; text-align: center; }

        .signature-block { float: right; margin-top: 45px; text-align: right; display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
        .signature-line { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
        .signature-line:first-child input { border: none; background: transparent; width: 160px; text-align: left; font-size: 16px; padding: 0 2px 2px; font-family: var(--legal-font); }
        .signature-line:nth-child(2) input { border: none; border-bottom: 1px solid #000; text-align: center; font-size: 16px; padding: 2px; font-family: var(--legal-font); }

        .submit-zone { clear: both; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding-top: 50px; }
        .btn-save-main,
        .btn-simple-doc {
            background: #0f172a; color: white; border: none; padding: 14px 70px; font-size: 15px;
            font-weight: 600; border-radius: 30px; cursor: pointer; letter-spacing: 1px; transition: all 0.2s;
            font-family: var(--ui-font);
        }
        .btn-save-main:hover { background: #1e293b; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15,23,42,0.12); }
        .btn-simple-doc { background: #2563eb; padding-inline: 42px; }
        .btn-simple-doc:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(37,99,235,0.2); }
        .btn-simple-doc[disabled] {
            background: #94a3b8; color: rgba(255,255,255,0.9); cursor: not-allowed; box-shadow: none; transform: none;
        }
        .simple-doc-hint {
            margin-top: 14px; text-align: center; color: var(--text-secondary); font-size: 13px; font-family: var(--ui-font);
        }
        .simple-doc-item {
            border: 1px solid var(--border-color); border-radius: 12px; background: #fff; padding: 14px; margin-bottom: 14px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        }
        .simple-doc-item.is-selected {
            border-color: #2563eb; background: #f8fbff; box-shadow: 0 10px 24px rgba(37,99,235,0.08);
        }
        .simple-doc-check {
            display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text-main); cursor: pointer;
        }
        .simple-doc-check input[type="checkbox"] {
            width: 16px; height: 16px; accent-color: #2563eb;
        }
        .simple-doc-meta {
            margin: 8px 0 0 26px; color: var(--text-secondary); font-size: 12px; line-height: 1.6; font-family: var(--ui-font);
        }
        .simple-doc-fields {
            margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-color); display: none;
        }
        .simple-doc-item.is-selected .simple-doc-fields { display: block; }
        .simple-doc-field {
            margin-bottom: 10px;
        }
        .simple-doc-field:last-child { margin-bottom: 0; }
        .simple-doc-field label {
            display: block; margin-bottom: 6px; color: var(--text-main); font-size: 13px; font-weight: 600; font-family: var(--ui-font);
        }
        .simple-doc-field input,
        .simple-doc-field textarea {
            width: 100%; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 12px; font-size: 14px;
            line-height: 1.6; font-family: var(--ui-font); color: var(--text-main); background: #fff; outline: none; transition: all 0.15s;
        }
        .simple-doc-field textarea { min-height: 92px; resize: vertical; }
        .simple-doc-field input:focus,
        .simple-doc-field textarea:focus {
            border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
        }
        .agent-remove-btn:hover { background:#fee2e2; border-color:#f87171; }
        .simple-doc-sidebar-actions {
            display: flex; gap: 10px; margin-top: 14px;
        }
        .simple-doc-sidebar-actions .radio-item,
        .simple-doc-sidebar-actions .btn-confirm {
            justify-content: center; flex: 1; margin: 0;
        }
    