/* 自动代码终端样式 */
.auto-code-terminal {
    font-family: 'Courier New', monospace;
    background-color: rgba(0, 10, 0, 0.8);
    padding: 10px;
    overflow-y: auto;
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-size: 14px;
    line-height: 1.4;
}

.auto-code-terminal::-webkit-scrollbar {
    display: none;
}

.code-line {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.code-comment {
    color: #666;
    font-style: italic;
}

.code-keyword {
    color: #00ff9d;
    font-weight: bold;
}

.code-string {
    color: #ff9d00;
}

.code-number {
    color: #00c3ff;
}

.code-function {
    color: #ff00ff;
}

.code-command {
    color: #00ff9d;
    font-weight: bold;
}

.code-result {
    color: #888;
}

.code-prompt {
    color: #00ff9d;
}

.code-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #0f0;
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

/* 主题: 蓝色 */
.theme-blue .code-keyword {
    color: #0077ff;
}

.theme-blue .code-prompt,
.theme-blue .code-command {
    color: #00c3ff;
}

.theme-blue .code-cursor {
    background-color: #00c3ff;
}

/* 主题: 琥珀色 */
.theme-amber .code-keyword {
    color: #ff7b00;
}

.theme-amber .code-prompt,
.theme-amber .code-command {
    color: #ffb700;
}

.theme-amber .code-cursor {
    background-color: #ffb700;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}