/* ===== 终端 ===== */
.terminal-wrap {
  background: #0d1117;
  border-radius: 10px;
  border: 1px solid #2d3540;
  margin-bottom: 14px;
  overflow: hidden;
}

.terminal-wrap .term-header {
  display: flex;
  justify-content: space-between;
  padding: 6px 14px;
  background: #0f141a;
  border-bottom: 1px solid #2d3540;
  font-size: 12px;
  color: #8b9bb5;
  align-items: center;
}

.terminal-wrap .term-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-wrap .term-header .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-wrap .term-header .header-right .divider {
  color: #2d3540;
  user-select: none;
}

.terminal-wrap .term-header .header-btn {
  cursor: pointer;
  color: #6e7681;
  transition: 0.15s;
  background: none;
  border: none;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.terminal-wrap .term-header .header-btn:hover {
  color: #cdd6e0;
  background: #2d3540;
}

.terminal {
  height: 520px;
  overflow-y: auto;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  scroll-behavior: smooth;
}

.terminal .line {
  display: block;
}

.terminal .line.cmd {
  color: #7ee0b0;
}

.terminal .line.resp {
  color: #cdd6e0;
}

.terminal .line.error {
  color: #f0888e;
}

.terminal .line.info {
  color: #8b9bb5;
  font-style: italic;
}

.terminal .line .prompt {
  color: #6e7681;
}

.terminal::-webkit-scrollbar {
  width: 5px;
}

.terminal::-webkit-scrollbar-track {
  background: #0d1117;
}

.terminal::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 6px;
}

.terminal::-webkit-scrollbar-thumb:hover {
  background: #3d4655;
}

.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #238636;
  color: #fff;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
}

/* ===== 命令输入行 ===== */
.cmd-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cmd-row .cmd-input {
  flex: 1;
  min-width: 180px;
  background: #0d1117;
  border: 1px solid #30363d;
  color: #cdd6e0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: 0.15s;
}

.cmd-row .cmd-input:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px #1f6feb33;
}

.cmd-row .cmd-input::placeholder {
  color: #484f58;
}

.cmd-row .cmd-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
