/* 剧本选择器样式 */

/* 文本截断样式 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 剧本卡片悬停效果 */
.script-card {
  transition: all 0.2s ease-in-out;
}

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

/* 选中状态的卡片动画 */
.script-card.selected {
  animation: selectPulse 0.3s ease-out;
}

@keyframes selectPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* 步骤信息滚动条样式 */
.script-steps-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.script-steps-scroll::-webkit-scrollbar {
  width: 4px;
}

.script-steps-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.script-steps-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.script-steps-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* 强制一行一个卡片 */
.script-selector-grid {
  grid-template-columns: 1fr !important;
}

/* 空状态样式 */
.empty-state {
  opacity: 0.6;
}

.empty-state svg {
  opacity: 0.4;
}

/* 选中计数器样式 */
.selection-counter {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

/* 卡片内容区域样式优化 */
.script-card-content {
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.script-card-header {
  flex-shrink: 0;
}

.script-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.script-card-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* 标签样式增强 */
.script-type-badge {
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* 步骤信息样式 */
.script-step-item {
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.script-step-item:hover {
  border-left-color: rgba(59, 130, 246, 0.5);
}

/* 加载状态样式 */
.script-selector-loading {
  opacity: 0.5;
  pointer-events: none;
}

.script-selector-loading .script-card {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Modal中的剧本选择器优化 */
.modal .script-selector-grid {
  max-height: 60vh;
  overflow-y: auto;
}

/* 剧本列表滚动条样式 */
.script-list-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.script-list-scroll::-webkit-scrollbar {
  width: 6px;
}

.script-list-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.script-list-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.script-list-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}
