/* 终端风格首页 */
.terminal-home {
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(110, 231, 183, 0.15);
}

/* 标题栏 */
.th-titlebar {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(110, 231, 183, 0.1);
}

.th-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.th-red { background: #ff5f56; }
.th-yellow { background: #ffbd2e; }
.th-green { background: #27c93f; }

.th-title {
  color: #8b949e;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  margin-left: 8px;
}

/* 终端主体 */
.th-body {
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #6ee7b7;
  max-height: 400px;
  overflow-y: auto;
}

/* 输出行 */
.th-line {
  min-height: 1.6em;
  white-space: pre-wrap;
  word-break: break-all;
}

.th-prompt {
  color: #f472b6;
  margin-right: 6px;
  font-weight: bold;
}

.th-error {
  color: #f87171;
}

.th-hint {
  color: #8b949e;
  font-size: 12px;
}

/* 输入行 */
.th-input-line {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.th-input {
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  caret-color: #6ee7b7;
}

.th-input::placeholder {
  color: #4a5568;
}

/* 滚动条 */
.th-body::-webkit-scrollbar {
  width: 6px;
}
.th-body::-webkit-scrollbar-track {
  background: transparent;
}
.th-body::-webkit-scrollbar-thumb {
  background: rgba(110, 231, 183, 0.2);
  border-radius: 3px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .terminal-home {
    border-radius: 8px;
    margin: 0 -1rem 1.5rem;
  }
  .th-body {
    font-size: 12px;
    max-height: 300px;
    padding: 12px;
  }
}
