* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', Monaco, 'Lucida Console', monospace;
    font-size: 14px;
    line-height: 1.4;
    min-height: 100vh;
    overflow: hidden;
    outline: none;
}

body:focus {
    outline: none;
}

.terminal {
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #333;
    color: #ccc;
    padding: 8px 12px;
    font-size: 12px;
    border-bottom: 1px solid #555;
    flex-shrink: 0;
}

.title-bar {
    font-weight: normal;
}

.terminal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ascii-art {
    color: #00ff00;
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 20px;
    white-space: pre;
    overflow-x: auto;
}

.content {
    font-size: 14px;
    flex: 1;
}

.line {
    margin: 8px 0;
    white-space: nowrap;
}

.prompt {
    color: #00ff00;
    font-weight: bold;
}

.command {
    color: #fff;
    margin-left: 5px;
}

.input {
    color: #fff;
    margin-left: 5px;
}

.output {
    color: #ccc;
    margin: 5px 0 15px 0;
    white-space: pre-line;
    padding-left: 0;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    .ascii-art {
        font-size: 8px;
    }
    
    .content {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 11px;
    }
    
    .terminal-content {
        padding: 10px;
    }
    
    .ascii-art {
        font-size: 6px;
        line-height: 1.1;
    }
    
    .content {
        font-size: 11px;
    }
    
    .line {
        margin: 6px 0;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 选中文字样式 */
::selection {
    background: #00ff00;
    color: #000;
}

::-moz-selection {
    background: #00ff00;
    color: #000;
} 