.terminal-container {
  width: 80%;
  height: 70%;
  max-width: 1000px;
  background-color: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--terminal-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(5px);
  animation: terminal-appear 1s ease-out;
}

@keyframes terminal-appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-header {
  height: 36px;
  background-color: rgba(20, 20, 20, 0.8);
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.close {
  background-color: #ff5f56;
}

.minimize {
  background-color: #ffbd2e;
}

.maximize {
  background-color: #27c93f;
}

.terminal-title {
  flex-grow: 1;
  text-align: center;
  font-size: 14px;
  color: var(--foreground);
  text-shadow: 0 0 5px var(--green);
}

.terminal-body {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.terminal-output {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.prompt {
  color: var(--green);
  margin-right: 8px;
  white-space: nowrap;
}

#terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foreground);
  font-family: 'Fira Code', monospace;
  font-size: 16px;
  caret-color: var(--green);
}

/* 终端欢迎信息样式 */
.welcome-text {
  margin-bottom: 20px;
  animation: fade-in 1.5s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ascii-art {
  color: var(--cyan);
  font-size: 14px;
  margin-bottom: 15px;
  text-shadow: 0 0 5px var(--cyan);
}

.welcome-message {
  color: var(--foreground);
  font-size: 18px;
  margin-bottom: 10px;
}

.highlight {
  color: var(--magenta);
  text-shadow: 0 0 5px var(--magenta);
}

.command {
  color: var(--yellow);
  background-color: rgba(255, 255, 0, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
}

/* 命令输出样式 */
.command-output {
  margin: 10px 0;
  line-height: 1.5;
}

.success {
  color: var(--green);
}

.error {
  color: var(--red);
}

.info {
  color: var(--blue);
}

.warning {
  color: var(--yellow);
}

/* 打字动画效果 */
@keyframes typing {
  from {
    width: 0;
  }
}

.typing {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 1s steps(30, end);
}

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

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: var(--green);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
}