* { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
        }
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            background: rgba(255,255,255,0.15);
            backdrop-filter: blur(10px);
            color: white;
            padding: 25px;
            text-align: center;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        .header h1 { font-size: 1.8rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
        .header p { opacity: 0.9; margin-top: 8px; }

        .panel {
            background: rgba(255,255,255,0.95);
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        }
        .panel h2 {
            font-size: 1.15rem;
            color: #2d3748;
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .panel h2 .step-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50%;
            font-size: 0.85rem;
            font-weight: bold;
        }

        textarea {
            width: 100%;
            min-height: 160px;
            padding: 14px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 13px;
            resize: vertical;
            transition: border-color 0.3s;
        }
        textarea:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.1); }
        textarea.hint { color: #a0aec0; }

        .btn {
            display: inline-block;
            padding: 10px 22px;
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            margin: 8px 8px 8px 0;
        }
        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102,126,234,0.4);
        }
        .btn-secondary {
            background: #f8fafc;
            color: #4a5568;
            border: 1px solid #e2e8f0;
        }
        .btn-secondary:hover { background: #edf2f7; }
        .btn-danger {
            background: #fed7d7;
            color: #c53030;
        }
        .btn-danger:hover { background: #feb2b2; }
        .btn-small { padding: 4px 10px; font-size: 0.8rem; margin: 0; }

        /* 字段配置表格 */
        .config-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            font-size: 0.9rem;
        }
        .config-table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 10px 8px;
            text-align: left;
            font-weight: 500;
        }
        .config-table td {
            padding: 8px;
            border-bottom: 1px solid #e2e8f0;
        }
        .config-table tr:hover td { background: #f7fafc; }
        .config-table input, .config-table select {
            padding: 6px 8px;
            border: 1px solid #e2e8f0;
            border-radius: 5px;
            font-size: 0.85rem;
            width: 100%;
        }
        .config-table input:focus, .config-table select:focus {
            outline: none;
            border-color: #667eea;
        }
        .config-table .col-small { width: 60px; }
        .config-table .col-medium { width: 120px; }
        .config-table .col-map { width: 200px; }
        .config-table .col-action { width: 80px; text-align: center; }

        .action-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .output-area {
            background: #1a202c;
            color: #e2e8f0;
            padding: 20px;
            border-radius: 8px;
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 13px;
            white-space: pre-wrap;
            word-break: break-all;
            max-height: 500px;
            overflow-y: auto;
            margin-top: 12px;
        }
        .output-area:empty::before {
            content: '生成的JSON将显示在这里...';
            color: #718096;
        }

        .tips {
            background: #ebf8ff;
            border-left: 4px solid #4299e1;
            padding: 12px 16px;
            border-radius: 0 8px 8px 0;
            margin-bottom: 16px;
            font-size: 0.85rem;
            color: #2c5282;
        }
        .tips code {
            background: rgba(66,153,225,0.15);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: monospace;
        }

        .flex-row {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }
        .flex-row > .panel { flex: 1; min-width: 320px; }

        @media (max-width: 768px) {
            .container { padding: 10px; }
            .header h1 { font-size: 1.4rem; }
            .config-table { font-size: 0.8rem; }
            .config-table th, .config-table td { padding: 6px 4px; }
            .config-table input, .config-table select { font-size: 0.8rem; padding: 4px; }
            .col-map { min-width: 100px; }
        }