* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.terminal {
    width: 100%;
    max-width: 900px;
    background: #0c0c0c;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.15);
    overflow: hidden;
    border: 1px solid #00ff00;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #00ff00;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    color: #00ff00;
    font-size: 14px;
    flex: 1;
}

.terminal-body {
    padding: 20px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    color: #00ff00;
    font-size: 14px;
    line-height: 1.6;
}

.output-line {
    margin-bottom: 10px;
}

.prompt {
    color: #00ff00;
    font-weight: bold;
}

.command {
    color: #ffffff;
    margin-left: 5px;
}

.output-text {
    color: #00ff00;
    margin-left: 20px;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.menu-container {
    margin-left: 20px;
    margin-bottom: 20px;
}

.menu-item {
    padding: 8px 12px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    display: flex;
    align-items: center;
}

.menu-item:hover {
    background: rgba(0, 255, 0, 0.1);
    border-left-color: #00ff00;
    padding-left: 20px;
}

.file-icon {
    margin-right: 10px;
    font-size: 16px;
}

.file-name {
    color: #00ffff;
    font-weight: bold;
    min-width: 120px;
}

.file-desc {
    color: #888;
}

.input-line {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.user-input {
    color: #ffffff;
    margin-left: 5px;
}

.cursor {
    color: #00ff00;
    animation: blink 1.5s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* 打字机效果的光标 */
.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00ff00;
    animation: blink 1.5s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .terminal {
        max-width: 100%;
    }
    
    .terminal-body {
        padding: 15px;
        font-size: 12px;
    }
    
    .file-name {
        min-width: 80px;
    }
    
    .file-desc {
        display: none;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0c0c0c;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* 选中文本样式 */
::selection {
    background: #00ff00;
    color: #0c0c0c;
}
