/* Windows 命令行终端样式 */
.slide.hacker-terminal {
    background-color: #0C0C0C;
    color: #CCCCCC;
    font-family: 'Consolas', 'Courier New', monospace;
}

.slide.hacker-terminal h1,
.slide.hacker-terminal p {
    color: #CCCCCC;
}

.slide.hacker-terminal h1 {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 2.6em;
    letter-spacing: 0.02em;
}

/* 终端窗口容器 */
#terminal-animation {
    width: min(800px, 90vw);
    height: min(480px, 52vh);
    margin: 20px auto;
    background: #0C0C0C;
    border: 1px solid #404040;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.45;
    padding: 48px 18px 18px 18px;
    overflow-y: auto;
    text-align: left;
}

/* 窗口标题栏 */
#terminal-animation::before {
    content: "\A0\A0\25CB  \A0命令提示符";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #0C0C0C;
    color: #999999;
    font-size: 12px;
    line-height: 32px;
    padding-left: 0;
    border-bottom: 1px solid #333333;
    border-radius: 8px 8px 0 0;
    z-index: 10;
}

/* 命令提示符样式 */
#terminal-animation .prompt {
    color: #CCCCCC;
    font-weight: normal;
    text-align: left;
}

/* 命令文本样式 */
#terminal-animation .command {
    color: #CCCCCC;
    font-weight: normal;
    text-align: left;
}

/* 输出文本样式 */
#terminal-animation .output {
    color: #CCCCCC;
    white-space: pre-wrap;
    margin: 2px 0;
    text-align: left;
}

/* 高亮输出（如编译成功） */
#terminal-animation .output--success {
    color: #6A9955;
}

/* 光标闪烁动画 */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

#terminal-animation .cursor {
    background-color: #CCCCCC;
    color: #0C0C0C;
    animation: blink 1s infinite;
    padding: 0 2px;
}

/* 自定义滚动条 */
#terminal-animation::-webkit-scrollbar {
    width: 10px;
}

#terminal-animation::-webkit-scrollbar-track {
    background: #1E1E1E;
}

#terminal-animation::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 5px;
}

#terminal-animation::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    #terminal-animation {
        width: min(700px, 88vw);
        height: min(420px, 48vh);
        font-size: 13px;
    }

    .slide.hacker-terminal h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 600px) {
    #terminal-animation {
        width: 95vw;
        height: min(340px, 45vh);
        font-size: 11px;
        padding: 42px 12px 12px 12px;
    }

    .slide.hacker-terminal h1 {
        font-size: 1.8em;
    }

    #terminal-animation::before {
        font-size: 10px;
        height: 28px;
        line-height: 28px;
    }
}
