/* 自定义按钮样式 */
.btn-primary {
  padding: 0.5rem 1.25rem;
  background-image: var(--primary-gradient);
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 0.5rem 1.25rem;
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  color: #334155;
}

/* 卡片组件样式 */
.card {
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 表单样式增强 */
input, textarea, select {
  @apply rounded focus:ring-2 focus:ring-blue-300 focus:outline-none transition duration-200;
}

/* 数字人卡片 */
.digital-human-card {
  @apply border rounded-lg p-3 hover:shadow-md transition duration-200 bg-white cursor-pointer;
}

.digital-human-card.selected {
  @apply border-blue-500 ring-2 ring-blue-300;
}

/* 弹窗背景 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

/* 弹窗容器 */
.modal-container {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-height: 90vh;
  overflow-y: auto;
}

.hidden {
  display: none;
}

/* 全局样式 */
:root {
  --primary-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
  --secondary-gradient: linear-gradient(135deg, #3b82f6, #2dd4bf);
  --tertiary-gradient: linear-gradient(135deg, #f97316, #ec4899);
  --neutral-gradient: linear-gradient(135deg, #64748b, #475569);
}

body {
  font-family: 'SF Pro Display', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* 背景渐变 */
.bg-gradient-app {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* 底部导航栏 */
.mobile-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.05);
}

/* 功能卡片 */
.feature-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* 文本输入区域 */
.text-input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.2s ease;
}

.text-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  outline: none;
}

/* 数字人卡片 */
.human-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.human-card:hover {
  transform: translateY(-3px);
}

.human-card.selected {
  border-color: #4f46e5;
}

/* 视频播放器 */
.video-player {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

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