        * {
            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;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 10px;
        }

        .container {
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 20px;
            max-width: 100%;
            width: 100%;
            height: 100vh;
            display: flex;
            flex-direction: column;
        }

        h1 {
            text-align: center;
            color: #333;
            margin-bottom: 20px;
            font-size: 24px;
        }

        .upload-area {
            border: 2px dashed #667eea;
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            margin-bottom: 15px;
            position: relative;
            overflow: hidden;
        }

        .upload-area:hover {
            border-color: #764ba2;
            background: #f8f9ff;
        }

        .upload-area.dragover {
            border-color: #764ba2;
            background: #f0f2ff;
            transform: scale(1.02);
        }

        .upload-icon {
            font-size: 36px;
            color: #667eea;
            margin-bottom: 8px;
        }

        .upload-text {
            color: #666;
            font-size: 14px;
            margin-bottom: 6px;
        }

        .upload-hint {
            color: #999;
            font-size: 12px;
        }

        input[type="file"] {
            display: none;
        }

        .history-section {
            margin-bottom: 15px;
        }

        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .history-title {
            cursor: pointer;
            color: #667eea;
            font-size: 16px;
        }

        .history-actions {
            display: flex;
            gap: 10px;
        }

        .history-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
        }

        .history-btn:hover {
            background: #764ba2;
        }

        .history-btn.danger {
            background: #d32f2f;
        }

        .history-btn.danger:hover {
            background: #b71c1c;
        }

        #historyList {
            max-height: 120px;
            overflow-y: auto;
            padding-left: 20px;
        }

        .history-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 4px 0;
            border-bottom: 1px solid #eee;
        }

        .history-item:last-child {
            border-bottom: none;
        }

        .history-path {
            cursor: pointer;
            color: #555;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            margin-right: 8px;
        }

        .history-path:hover {
            color: #667eea;
        }

        .history-delete {
            background: #ff5252;
            color: white;
            border: none;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 11px;
            cursor: pointer;
        }

        .history-delete:hover {
            background: #d32f2f;
        }

        .checkbox-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 15px 0;
            gap: 8px;
        }

        .checkbox-wrapper input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #667eea;
        }

        .checkbox-wrapper label {
            cursor: pointer;
            color: #555;
            font-size: 14px;
        }

        .output-area {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-top: 10px;
            flex: 1;
            overflow-y: auto;
            display: none;
        }

        .output-area.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        pre {
            margin: 0;
            white-space: pre-wrap;
            word-wrap: break-word;
            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
            font-size: 12px;
            line-height: 1.4;
        }

        .json-key {
            color: #881391;
            font-weight: bold;
        }

        .json-string {
            color: #032f62;
        }

        .json-number {
            color: #005cc5;
        }

        .json-boolean {
            color: #d73a49;
        }

        .json-null {
            color: #6f42c1;
        }

        .error-message {
            color: #d32f2f;
            text-align: center;
            padding: 15px;
            font-size: 14px;
        }

        .success-message {
            color: #388e3c;
            text-align: center;
            padding: 8px;
            margin-bottom: 10px;
            background: #e8f5e9;
            border-radius: 4px;
            display: none;
            font-size: 14px;
        }

        .success-message.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        /* 移动端适配 */
        @media (max-width: 600px) {
            body {
                padding: 0;
            }

            .container {
                border-radius: 0;
                height: 100vh;
                padding: 15px;
            }

            h1 {
                font-size: 20px;
                margin-bottom: 15px;
            }

            .upload-area {
                padding: 20px;
                margin-bottom: 10px;
            }

            .upload-icon {
                font-size: 28px;
            }

            .upload-text {
                font-size: 13px;
            }

            .upload-hint {
                font-size: 11px;
            }

            .history-title {
                font-size: 14px;
            }

            .history-btn {
                font-size: 11px;
                padding: 3px 6px;
            }

            #historyList {
                max-height: 100px;
                font-size: 11px;
            }

            .history-path {
                font-size: 12px;
            }

            .history-delete {
                font-size: 10px;
                padding: 1px 4px;
            }

            .checkbox-wrapper {
                margin: 10px 0;
            }

            .checkbox-wrapper label {
                font-size: 13px;
            }

            .output-area {
                padding: 10px;
            }

            pre {
                font-size: 11px;
            }
        }