/* 惊语 · AI 封面提示词工具 - 自定义样式 */

/* 基础重置 */
* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  background: #FAFBFC;
}

/* 进度条 */
.progress-bar {
  position: relative;
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  margin: 0 auto;
  max-width: 400px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1, #8B5CF6);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #9CA3AF;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.progress-step.active {
  background: #6366F1;
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.progress-step-label {
  position: absolute;
  top: 40px;
  font-size: 11px;
  color: #9CA3AF;
  white-space: nowrap;
}

.progress-step.active .progress-step-label {
  color: #6366F1;
}

/* 场景卡片 */
.scene-card {
  background: white;
  cursor: pointer;
}

.scene-card:hover {
  transform: translateY(-2px);
}

/* 子类型卡片 */
.subtype-card {
  background: white;
  cursor: pointer;
}

.subtype-card:hover {
  transform: translateY(-2px);
}

/* 模板卡片 */
.template-card {
  background: white;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-4px);
}

.template-preview img {
  transition: transform 0.3s ease;
}

.template-card:hover .template-preview img {
  transform: scale(1.05);
}

/* 提示词输出 */
#prompt-output {
  tab-size: 2;
  -moz-tab-size: 2;
}

/* 输入框焦点 */
input:focus {
  outline: none;
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#step-content {
  animation: fadeIn 0.3s ease;
}

/* 响应式 */
@media (max-width: 640px) {
  .progress-steps {
    gap: 0;
  }
  .progress-step-label {
    display: none;
  }
}
