#game-wrapper {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 20px;
}

#main-game-container {
    flex: 3;
    display: flex;
    flex-direction: column;
}

#console-container-img{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#console-container-img-btn{
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(76, 201, 240, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#console-container {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    border: 1px solid #4cc9f0;
    display: none;
    flex-direction: column;
    height: fit-content;
    max-height: 700px;
}

.console-header {
    background: linear-gradient(to right, #1a2a6c, #2a3a8c);
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #4cc9f0;
}

.console-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    text-shadow: 0 0 5px #4cc9f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-header h3::before {
    content: "▶";
    color: #00ff00;
    font-size: 14px;
}

.console-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

#console-output {
    flex: 1;
    min-height: 300px;
    max-height: 500px;
    background: rgba(0, 10, 20, 0.9);
    border: 1px solid #2a4a5a;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #00ffcc;
    overflow-y: auto;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

#console-output p {
    margin: 0 0 8px 0;
}

#console-output p:last-child {
    margin-bottom: 0;
}

.console-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid #4cc9f0;
    border-radius: 4px;
    padding: 0 10px;
}

.command-prefix {
    color: #00ff00;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    margin-right: 8px;
}

#console-command {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    padding: 10px 0;
    outline: none;
}

#console-command::placeholder {
    color: #6a8a9a;
}

#console-submit {
    background: linear-gradient(to right, #1a6ca2, #2a8cd0);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

#console-submit:hover {
    background: linear-gradient(to right, #2a8cd0, #3a9cf0);
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
    transform: translateY(-1px);
}

#console-submit:active {
    transform: translateY(0);
}

#console-suggestions {
    position: absolute;
    background: rgba(11, 207, 30, 0.95);
    border: 1px solid #4cc9f0;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: -10px;
    width: calc(100% - 30px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.console-suggestion-item {
    padding: 8px 12px;
    color: #00ffcc;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
}

.console-suggestion-item:last-child {
    border-bottom: none;
}

.console-suggestion-item:hover {
    background: rgba(76, 201, 240, 0.2);
    color: #fff;
}

/* 控制台日志样式 */
.console-log {
    color: #00ffcc;
}

.console-error {
    color: #ff5555;
}

.console-warning {
    color: #ffaa00;
}

.console-success {
    color: #55ff55;
}

.console-info {
    color: #55aaff;
}

/* 滚动条样式 */
#console-output::-webkit-scrollbar {
    width: 8px;
}

#console-output::-webkit-scrollbar-track {
    background: rgba(0, 20, 40, 0.5);
    border-radius: 4px;
}

#console-output::-webkit-scrollbar-thumb {
    background: #4cc9f0;
    border-radius: 4px;
}

#console-output::-webkit-scrollbar-thumb:hover {
    background: #5cd9ff;
}

/* 响应式设计 */
@media (max-width: 900px) {
    #game-wrapper {
        flex-direction: column;
    }
    
    #console-container {
        max-width: 100%;
        order: 2;
        margin-top: 20px;
    }
    
    #main-game-container {
        order: 1;
    }
}