* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    line-height: 1.6;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
}

.terminal {
    background-color: #000;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: auto;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.terminal-header {
    text-align: center;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.command-line {
    display: flex;
}

.prompt {
    color: white;
    margin-right: 12px;
}

.input {
    background-color: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
    flex-grow: 1;
}

.output {
    white-space: pre-wrap;
}

/* .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #00ff00;
    animation: blink 1s infinite;
    vertical-align: middle;
} */

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.error {
    color: #ff5555;
}

.system {
    color: #5555ff;
}

.comment {
    color: #aaaaaa;
}

@media (max-width: 600px) {
    body {
        font-size: 14px; /* 手机上字体缩小 */
        padding: 5px; /* 进一步减小内边距 */
    }
    
    .terminal {
        padding: 10px; /* 减小终端内边距 */
    }
    
    .terminal-header {
        font-size: 12px; /* 头部文字缩小 */
        margin-bottom: 10px;
        padding-bottom: 5px;
    }
    
    .prompt {
        margin-right: 8px; /* 减小提示符间距 */
    }
    
    .output, .command-line {
        margin-bottom: 6px; /* 减小行间距 */
    }
    
    .cursor {
        width: 7px;
        height: 14px; /* 光标也按比例缩小 */
    }
}