        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --primary-light: #818cf8;
            --secondary: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --bg: #f8fafc;
            --bg-card: #ffffff;
            --bg-dark: #1e293b;
            --text: #334155;
            --text-light: #64748b;
            --text-dark: #0f172a;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
            --radius: 12px;
            --radius-sm: 8px;
            --transition: all 0.2s ease;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: var(--text);
        }

        /* 主布局 */
        .app-container {
            display: flex;
            min-height: 100vh;
        }

        /* 侧边栏 */
        .sidebar {
            width: 320px;
            background: var(--bg-dark);
            color: #fff;
            display: flex;
            flex-direction: column;
            transition: var(--transition);
            position: relative;
            z-index: 100;
        }

        .sidebar-header {
            padding: 20px;
            background: rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        .logo-bg {
            position: absolute;
            width: 100%;
            height: 100%;
        }
        .logo-icon {
            position: absolute;
            width: 22px;
            height: 22px;
        }

        .sidebar-title { font-size: 20px; font-weight: 600; }

        .sidebar-actions {
            padding: 16px 20px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .sidebar-actions .btn {
            flex: 1;
            min-width: calc(50% - 4px);
            padding: 8px 12px;
            font-size: 13px;
        }

        .sidebar-tabs {
            display: flex;
            padding: 0 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .sidebar-tab {
            flex: 1;
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            font-size: 13px;
            color: rgba(255,255,255,0.6);
            border-bottom: 2px solid transparent;
            transition: var(--transition);
        }

        .sidebar-tab:hover { color: rgba(255,255,255,0.9); }
        .sidebar-tab.active { color: #fff; border-bottom-color: var(--primary-light); }

        .sidebar-content {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px;
        }

        .sidebar-content::-webkit-scrollbar { width: 6px; }
        .sidebar-content::-webkit-scrollbar-track { background: transparent; }
        .sidebar-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

        .sidebar-footer {
            padding: 16px 20px;
            text-align: center;
            font-size: 12px;
            color: rgba(255,255,255,0.35);
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .empty-tip {
            text-align: center;
            padding: 30px 20px;
            color: rgba(255,255,255,0.4);
            font-size: 13px;
        }

        .panel-section { display: none; }
        .panel-section.active { display: block; }

        /* 历史/接口列表项 */
        .list-item {
            background: rgba(255,255,255,0.08);
            border-radius: var(--radius-sm);
            padding: 12px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: var(--transition);
        }

        .list-item:hover { background: rgba(255,255,255,0.15); }

        .list-item-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }

        .method-badge {
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .method-get { background: #10b981; color: #fff; }
        .method-post { background: #f59e0b; color: #fff; }
        .method-put { background: #3b82f6; color: #fff; }
        .method-delete { background: #ef4444; color: #fff; }
        .method-patch { background: #8b5cf6; color: #fff; }
        .method-ws { background: #06b6d4; color: #fff; }
        .method-sse { background: #ec4899; color: #fff; }

        .list-item-url {
            font-size: 13px;
            color: rgba(255,255,255,0.8);
            word-break: break-all;
            line-height: 1.4;
        }

        .list-item-time {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            margin-top: 6px;
        }

        .list-item-actions {
            display: flex;
            gap: 6px;
            margin-top: 8px;
        }

        .list-item-actions .btn {
            padding: 4px 10px;
            font-size: 11px;
        }

        /* 主内容区 */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* 顶部导航 */
        .panel-header {
            display: flex;
            gap: 6px;
            margin-bottom: 12px;
        }

        /* 按钮样式 */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 18px;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
        }

        .btn:hover { transform: translateY(-1px); }
        .btn:active { transform: translateY(0); }

        .btn-primary { background: var(--primary); color: #fff; }
        .btn-primary:hover { background: var(--primary-dark); }

        .btn-secondary { background: #64748b; color: #fff; }
        .btn-secondary:hover { background: #475569; }

        .btn-success { background: var(--secondary); color: #fff; }
        .btn-success:hover { background: #059669; }

        .btn-danger { background: var(--danger); color: #fff; }
        .btn-danger:hover { background: #dc2626; }

        .btn-sm { padding: 6px 12px; font-size: 12px; }
        .btn-block { width: 100%; }
        .btn-icon { padding: 8px; background: transparent; }
        .btn-icon:hover { background: rgba(255,255,255,0.1); }

        .btn-dashed {
            background: transparent;
            border: 2px dashed var(--border);
            color: var(--text-light);
        }
        .btn-dashed:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(99,102,241,0.05);
        }

        /* 顶部URL栏 */
        .top-bar {
            background: #fff;
            padding: 16px 24px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: var(--shadow);
        }

        .method-select {
            padding: 10px 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 14px;
            background: #fff;
            color: var(--primary);
            cursor: pointer;
            min-width: 100px;
        }

        .url-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 14px;
            transition: var(--transition);
        }

        .url-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
        }

        /* 内容区域 */
        .content-area {
            flex: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            padding: 20px 24px;
            overflow: auto;
            background: var(--bg);
        }

        /* 卡片样式 */
        .card {
            background: #fff;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .card-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .card-body {
            flex: 1;
            padding: 16px;
            overflow: auto;
        }

        /* 标签页 */
        .tabs {
            display: flex;
            gap: 4px;
        }

        .tab {
            padding: 8px 16px;
            cursor: pointer;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 500;
            color: var(--text-light);
            transition: var(--transition);
        }

        .tab:hover { background: rgba(99,102,241,0.05); color: var(--primary); }
        .tab.active { background: var(--primary); color: #fff; }

        .tab-panel { display: none; }
        .tab-panel.active { display: block; }

        /* 请求头行 */
        .header-row {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
            align-items: center;
        }

        .header-row input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        .header-row input[type="text"] {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
        }

        .header-row input[type="text"]:focus {
            outline: none;
            border-color: var(--primary);
        }

        .header-row .remark-input { max-width: 100px; }

        .header-row .btn-remove {
            padding: 6px 10px;
            background: #fef2f2;
            color: var(--danger);
            border-radius: var(--radius-sm);
        }

        .header-row .btn-remove:hover { background: #fee2e2; }

        /* 请求体类型选择器 */
        .body-type-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }

        .radio-card {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-size: 13px;
            transition: var(--transition);
        }

        .radio-card:hover { border-color: var(--primary-light); }
        .radio-card:has(input:checked) {
            border-color: var(--primary);
            background: rgba(99,102,241,0.05);
        }

        .radio-card input { display: none; }

        .body-content { min-height: 120px; }
        .body-content.hidden { display: none; }

        .body-content textarea {
            width: 100%;
            min-height: 150px;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-family: 'Monaco', 'Consolas', monospace;
            font-size: 13px;
            resize: vertical;
        }

        .ws-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        /* 响应状态 */
        .response-status {
            font-size: 13px;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 20px;
        }

        .status-2xx { background: #d1fae5; color: #065f46; }
        .status-3xx { background: #fef3c7; color: #92400e; }
        .status-4xx { background: #fee2e2; color: #991b1b; }
        .status-5xx { background: #fce7f3; color: #9d174d; }

        .response-actions {
            display: flex;
            gap: 6px;
            margin-bottom: 12px;
        }

        #responseBody {
            width: 100%;
            min-height: 200px;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-family: 'Monaco', 'Consolas', monospace;
            font-size: 13px;
            background: #f8fafc;
            resize: vertical;
        }

        .response-headers-table {
            width: 100%;
            border-collapse: collapse;
        }

        .response-headers-table th,
        .response-headers-table td {
            padding: 10px 12px;
            text-align: left;
            border-bottom: 1px solid var(--border);
            font-size: 13px;
        }

        .response-headers-table th { background: #f8fafc; font-weight: 600; }

        /* 工具面板 */
        .tools-panel {
            width: 400px;
            background: #fff;
            border-left: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            transition: var(--transition);
        }

        .tools-panel.hidden { display: none; }

        .tools-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .tools-header h3 { font-size: 16px; color: var(--text-dark); }

        .tools-tabs {
            display: flex;
            padding: 12px 16px;
            gap: 6px;
            border-bottom: 1px solid var(--border);
            overflow-x: auto;
        }

        .tools-tab {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            white-space: nowrap;
            transition: var(--transition);
            color: var(--text-light);
        }

        .tools-tab:hover { background: rgba(99,102,241,0.05); }
        .tools-tab.active { background: var(--primary); color: #fff; }

        .tools-content {
            flex: 1;
            padding: 16px 20px;
            overflow: auto;
        }

        .tool-panel { display: none; }
        .tool-panel.active { display: block; }

        .tool-panel textarea,
        .tool-panel input[type="text"],
        .tool-panel input[type="number"] {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            margin-bottom: 10px;
        }

        .tool-panel textarea:focus,
        .tool-panel input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .tool-actions {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }

        .tool-result label {
            display: block;
            font-size: 12px;
            color: var(--text-light);
            margin-bottom: 4px;
            margin-top: 10px;
        }

        .result-box {
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 12px;
            font-family: 'Monaco', 'Consolas', monospace;
            font-size: 12px;
            white-space: pre-wrap;
            word-break: break-all;
            min-height: 40px;
        }

        .input-group {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            align-items: center;
        }

        .input-group input[type="text"],
        .input-group input[type="number"] {
            flex: 1;
            margin-bottom: 0;
        }

        .token-options {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 12px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            cursor: pointer;
        }

        .checkbox-label input { accent-color: var(--primary); }

        /* 弹窗 */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
        }

        .modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #fff;
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow: auto;
            z-index: 1001;
        }

        .modal.hidden, .modal-overlay.hidden { display: none; }

        .modal-header {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 { font-size: 18px; }

        .modal-body { padding: 20px; }

        .modal-footer {
            padding: 16px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--text);
            margin-bottom: 6px;
        }

        .form-group select,
        .form-group input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 14px;
        }

        .form-group select:focus,
        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .form-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .select-sm {
            padding: 6px 10px;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: var(--radius-sm);
            background: rgba(255,255,255,0.1);
            color: #fff;
            font-size: 12px;
            flex: 1;
        }

        .select-sm option {
            background: #1e293b;
            color: #fff;
            padding: 8px;
        }

        .hidden { display: none !important; }

        /* JSON格式化视图 */
        .json-viewer {
            background: #1e293b;
            color: #e2e8f0;
            padding: 16px;
            border-radius: var(--radius-sm);
            font-family: 'Monaco', 'Consolas', monospace;
            font-size: 13px;
            white-space: pre-wrap;
            max-height: 400px;
            overflow: auto;
        }

        .json-formatted {
            line-height: 1.6;
        }

        .json-arrow {
            display: inline-block;
            width: 16px;
            height: 16px;
            line-height: 16px;
            text-align: center;
            cursor: pointer;
            color: #94a3b8;
            font-weight: bold;
            font-size: 12px;
            margin-right: 4px;
            user-select: none;
            border-radius: 3px;
            background: rgba(148, 163, 184, 0.15);
        }

        .json-arrow:hover {
            background: rgba(148, 163, 184, 0.3);
            color: #e2e8f0;
        }

        .json-container {
            padding-left: 24px;
            border-left: 1px dashed rgba(148, 163, 184, 0.3);
            margin-left: 7px;
        }

        .json-key { color: #7dd3fc; }
        .json-string { color: #86efac; }
        .json-number { color: #fde047; }
        .json-boolean { color: #f472b6; }
        .json-null { color: #a78bfa; }
        .json-bracket { color: #94a3b8; }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .content-area {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 900px) {
            .sidebar {
                position: fixed;
                left: -320px;
                height: 100vh;
                z-index: 200;
            }
            .sidebar.open { left: 0; }

            .tools-panel {
                position: fixed;
                right: -400px;
                top: 0;
                height: 100vh;
                z-index: 200;
                display: flex;
            }
            .tools-panel.hidden { display: flex; right: -400px; }
            .tools-panel.open { right: 0; }

            .top-bar {
                flex-wrap: wrap;
                gap: 8px;
                padding: 12px 16px;
            }

            .top-bar .btn-icon {
                padding: 8px;
            }

            .top-bar .method-select {
                min-width: 70px;
                padding: 8px 6px;
                font-size: 12px;
            }

            .top-bar .url-input {
                order: 10;
                flex: 1 1 100%;
                margin-top: 4px;
                padding: 10px 12px;
            }

            .top-bar .btn-secondary {
                padding: 8px 10px;
                font-size: 12px;
            }

            .top-bar #sendBtn {
                order: 11;
                flex: 1;
                margin-top: 4px;
            }
        }

        @media (max-width: 600px) {
            .method-select { min-width: 80px; }
            .btn { padding: 8px 12px; font-size: 13px; }
            .sidebar { width: 280px; }
            .tools-panel { width: 100%; }

            /* 请求体行移动端样式 */
            .body-row-item {
                display: grid !important;
                grid-template-columns: 24px 1fr auto;
                grid-template-rows: auto auto auto;
                gap: 8px;
                align-items: start;
            }

            .body-row-item > input[type="radio"] {
                grid-column: 1;
                grid-row: 1;
                margin-top: 8px;
            }

            .body-row-item > select {
                grid-column: 2;
                grid-row: 1;
                width: 100% !important;
            }

            .body-row-item > .btn-remove,
            .body-row-item > button.btn-remove {
                grid-column: 3;
                grid-row: 1;
            }

            .body-row-item > textarea {
                grid-column: 1 / -1;
                grid-row: 2;
                width: 100% !important;
                min-height: 80px;
            }

            .body-row-item > input[type="file"] {
                grid-column: 1 / -1;
                grid-row: 2;
                width: 100% !important;
            }

            .body-row-item > .remark-input,
            .body-row-item > input[placeholder="备注"] {
                grid-column: 1 / -1;
                grid-row: 3;
                width: 100% !important;
            }

            /* WS行移动端样式 */
            .ws-body-row {
                display: flex !important;
            }

            .ws-row-header {
                flex-wrap: wrap;
            }

            .ws-row-header .ws-body-type {
                flex: 1;
                min-width: 100px;
            }

            .ws-row-header .remark-input {
                flex: 1;
                min-width: 80px;
                order: 10;
            }

            .ws-row-header .btn-remove {
                order: 11;
            }
        }

        /* 变量和全局头样式 */
        .var-row, .header-row.list-item {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
            padding: 10px;
            margin-bottom: 8px;
            background: rgba(255,255,255,0.05);
            border-radius: var(--radius-sm);
        }

        .var-row input[type="checkbox"],
        .header-row.list-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            accent-color: var(--primary);
        }

        .var-row input[type="text"],
        .header-row.list-item input[type="text"] {
            flex: 1 1 60px;
            min-width: 60px;
            padding: 6px 10px;
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: var(--radius-sm);
            background: rgba(255,255,255,0.1);
            color: #fff;
            font-size: 12px;
        }

        .var-row input[type="text"]:focus,
        .header-row.list-item input[type="text"]:focus {
            outline: none;
            border-color: var(--primary-light);
        }

        .var-row .btn,
        .header-row.list-item .btn {
            flex-shrink: 0;
            white-space: nowrap;
        }

        /* Body行样式 */
        .body-row-item {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: flex-start;
            padding: 12px;
            background: #f8fafc;
            border-radius: var(--radius-sm);
            margin-bottom: 10px;
            border: 1px solid var(--border);
        }

        .body-row-item input[type="radio"] {
            margin-top: 8px;
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            accent-color: var(--primary);
        }

        .body-row-item textarea {
            flex: 1 1 200px;
            min-height: 100px;
            padding: 10px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-family: 'Monaco', 'Consolas', monospace;
            resize: vertical;
        }

        .body-row-item textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

        .body-row-item .remark-input {
            width: 100px;
            min-width: 80px;
            padding: 10px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            align-self: stretch;
        }

        .body-row-item .remark-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .body-row-item input[type="file"] {
            flex: 1 1 200px;
            padding: 8px;
            border: 1px dashed var(--border);
            border-radius: var(--radius-sm);
            background: #fff;
            cursor: pointer;
        }

        .body-row-item .btn-remove {
            flex-shrink: 0;
            align-self: flex-start;
            margin-top: 4px;
        }

        /* WS请求体行样式 */
        .ws-body-row {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .ws-row-header {
            display: flex;
            flex-wrap: nowrap;
            gap: 8px;
            align-items: center;
            width: 100%;
            height: 36px;
        }

        .ws-row-header > * {
            height: 36px;
            box-sizing: border-box;
            vertical-align: middle;
        }

        .ws-row-header input[type="radio"] {
            width: 18px;
            height: 18px;
            margin: 0;
            flex-shrink: 0;
            accent-color: var(--primary);
        }

        .ws-row-header .ws-body-type {
            width: 120px;
            flex-shrink: 0;
            padding: 0 10px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
        }

        .ws-row-header .remark-input {
            flex: 1;
            min-width: 80px;
            padding: 0 10px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
        }

        .ws-row-header .remark-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .ws-row-header .btn-remove {
            flex-shrink: 0;
            padding: 0 12px;
            margin: 0;
            margin-top: 0 !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .ws-row-content {
            width: 100%;
        }

        .ws-row-content textarea {
            width: 100%;
            min-height: 80px;
            padding: 10px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-family: 'Monaco', 'Consolas', monospace;
            resize: vertical;
        }

        .ws-row-content textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

        .ws-row-content input[type="file"] {
            width: 100%;
            padding: 10px;
            border: 1px dashed var(--border);
            border-radius: var(--radius-sm);
            background: #fff;
            cursor: pointer;
        }

        /* FormData样式 */
        .formdata-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: flex-start;
            padding: 10px;
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            margin-bottom: 8px;
        }

        .formdata-row input[type="checkbox"] {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            accent-color: var(--primary);
            margin-top: 11px;
        }

        .formdata-key { flex: 1 1 100px; min-width: 80px; }
        .formdata-type { width: 80px; flex-shrink: 0; }
        .formdata-value { flex: 2 1 150px; min-width: 100px; }
        .text-input { width: 100%; }
        .file-input { display: none; }
        .formdata-remark { flex: 0 0 100px; min-width: 80px; }

        /* 文件输入包装器 */
        .formdata-file-wrapper {
            display: none;
            flex: 2 1 150px;
            min-width: 100px;
            flex-direction: column;
        }
        .formdata-file-wrapper .file-input {
            display: block;
            width: 100%;
            padding: 6px 8px;
            height: 40px;
            border: 1px dashed var(--border);
            border-radius: var(--radius-sm);
            background: #fff;
            cursor: pointer;
            box-sizing: border-box;
        }

        .binary-input-wrapper {
            flex: 1 1 200px;
            min-width: 150px;
        }
        .binary-input-wrapper input[type="file"] {
            width: 100%;
            padding: 6px 8px;
            height: 40px;
            border: 1px dashed var(--border);
            border-radius: var(--radius-sm);
            background: #fff;
            cursor: pointer;
            box-sizing: border-box;
        }

        /* Binary行 - 第一行对齐，高度一致 */
        .body-row-item:has(.binary-input-wrapper) {
            align-items: flex-start;
        }
        .body-row-item:has(.binary-input-wrapper) input[type="radio"] {
            margin-top: 11px;
        }
        .body-row-item:has(.binary-input-wrapper) .remark-input {
            align-self: flex-start;
            height: 40px;
            padding: 0 10px;
            box-sizing: border-box;
        }
        .body-row-item:has(.binary-input-wrapper) .btn-remove {
            height: 40px;
            margin-top: 0;
        }

        /* 文件预览样式 */
        .file-preview {
            margin-top: 6px;
        }
        .file-preview-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 8px;
            background: #e8f4fd;
            border-radius: var(--radius-sm);
            font-size: 12px;
            color: var(--text);
            margin-bottom: 4px;
        }
        .file-preview-item span {
            font-weight: 500;
        }
        .file-preview-item small {
            color: #666;
        }

        .formdata-row input:not([type="checkbox"]):not([type="file"]),
        .formdata-row select {
            padding: 0 10px;
            height: 40px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            box-sizing: border-box;
        }

        .formdata-row input:not([type="checkbox"]):not([type="file"]):focus,
        .formdata-row select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .formdata-row .btn-remove {
            flex-shrink: 0;
            height: 40px;
            padding: 0 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }

        /* Form表单样式 */
        #formContainer .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 8px;
            align-items: center;
            padding: 10px;
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
        }

        #formContainer .form-row input[type="checkbox"] {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            accent-color: var(--primary);
        }

        #formContainer .form-row input[type="text"] {
            flex: 1 1 100px;
            min-width: 80px;
            padding: 0 10px;
            height: 36px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            box-sizing: border-box;
        }

        #formContainer .form-row input[type="text"]:focus {
            outline: none;
            border-color: var(--primary);
        }

        #formContainer .form-row .btn-remove {
            flex-shrink: 0;
            height: 36px;
            padding: 0 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }

        /* 加载动画 */
        .loading-spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 0.8s linear infinite;
            margin-right: 6px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* 文件工具样式 */
        .file-tools {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
        }

        .file-tools label {
            display: block;
            font-size: 12px;
            color: var(--text-light);
            margin-bottom: 6px;
        }

        .file-tools input[type="file"] {
            width: 100%;
            padding: 8px;
            border: 1px dashed var(--border);
            border-radius: var(--radius-sm);
            background: #fff;
            cursor: pointer;
            font-size: 13px;
            margin-bottom: 8px;
        }

        .file-tools input[type="file"]:hover {
            border-color: var(--primary);
            background: #f8fafc;
        }

        /* 移动端菜单按钮 */
        .mobile-menu-btn {
            display: none;
            padding: 8px;
            background: transparent;
            border: none;
            cursor: pointer;
        }

        /* 移动端遮罩层 */
        .mobile-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 150;
        }

        .mobile-overlay.active {
            display: block;
        }

        @media (max-width: 900px) {
            .mobile-menu-btn { display: flex; }
        }

        /* 滚动条美化 */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
        ::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }