/* terminal.css — 阶段一：命令行界面 */

#terminal-phase {
  background: var(--color-terminal-bg);
  color: var(--color-terminal-text);
  font-family: var(--font-mono);
  font-size: var(--font-size-mono);
  padding: var(--spacing-lg);
  justify-content: flex-end;
}

#terminal-output {
  flex: 1;
  overflow-y: auto;
  padding-bottom: var(--spacing-md);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

#terminal-output .line {
  opacity: 0.6;
}

#terminal-output .line.highlight {
  opacity: 1;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.05em;
}

#terminal-output .line.connection-success {
  opacity: 1;
  color: #66ffaa;
  font-weight: bold;
  margin-top: 16px;
  letter-spacing: 0.03em;
  animation: successPulse 1.5s ease;
}

@keyframes successPulse {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 1; }
}

#terminal-input-line {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-terminal-dim);
  padding-top: var(--spacing-sm);
}

#terminal-input-line .prompt {
  color: var(--color-terminal-dim);
  flex-shrink: 0;
  user-select: none;
}

#terminal-input {
  color: var(--color-terminal-text);
  font-family: var(--font-mono);
  font-size: var(--font-size-mono);
  caret-color: var(--color-terminal-text);
}

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

#terminal-input:focus {
  animation: none;
}

/* === 响应式 === */
@media (max-width: 768px) {
  #terminal-phase {
    padding: var(--spacing-md);
  }

  #terminal-output {
    font-size: 14px;
  }

  #terminal-input {
    font-size: 14px;
  }
}
