/* 代码输出组件样式（可复用） */

/* 输出控制台 */
.output-console {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--bg-card);
    overflow: hidden;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.console-title { color: var(--text-secondary); font-size: 0.8rem; font-weight: 500; }

.clear-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
}

.clear-btn:hover { background: var(--bg); color: var(--text-secondary); border-color: var(--text-muted); }

.console-content {
    margin: 0;
    padding: 0.75rem 1rem;
    min-height: 60px;
    max-height: 150px;
    overflow-y: auto;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.console-content.error { color: var(--danger); }
.console-content.success { color: var(--success); }

/* 代码可视化容器 */
.code-visualization {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.viz-header { padding: 0.6rem 1rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.viz-title { font-weight: 600; color: var(--text-secondary); font-size: 0.9rem; }
.viz-container { min-height: 300px; padding: 1rem; background: var(--bg-card); }
