/* ── JSON 输入区 ── */
.json-editor-wrap {
    margin-bottom: 1rem;
}

.json-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    resize: vertical;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
}

.json-textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

/* ── 结果区 ── */
.json-result {
    margin-top: 1.5rem;
}

.json-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.json-result-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.json-result-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.json-result-status.success {
    color: #059669;
    background: #d1fae5;
}

.json-result-status.error {
    color: #dc2626;
    background: #fee2e2;
}

.json-output {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
    background: #f8f9fb;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .json-textarea {
        min-height: 150px;
        font-size: 0.82rem;
    }

    .json-output {
        font-size: 0.8rem;
        max-height: 300px;
    }
}