/* AI功能区域样式 */
.ai-features-section {
  position: relative;
  z-index: 2;
  width: 96%;
  max-width: 1200px;
  padding: 80px 0;
  margin: auto;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  color: #0f1729;
  font-family: 'PingFang SC', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: #64748b;
  font-family: 'PingFang SC', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

/* 功能分类标签 */
.feature-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  padding: 0 20px;
}

.category-tab {
  padding: 12px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  background: #fff;
  color: #64748b;
  font-family: 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.category-tab:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.category-tab.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 功能分类内容 */
.feature-category-content {
  display: none;
  animation: fadeInUp 0.6s ease-out;
}

.feature-category-content.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 功能网格布局 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  padding: 0 20px;
}

/* 功能卡片 */
.feature-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* 卡片媒体区域 */
.card-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-video {
  transform: scale(1.05);
}

.placeholder-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-icon {
  font-size: 48px;
  opacity: 0.8;
}

/* 卡片覆盖层 */
.card-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.feature-badge {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #667eea;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'PingFang SC', sans-serif;
}

/* 卡片内容 */
.card-content {
  padding: 32px;
}

.feature-title {
  color: #0f1729;
  font-family: 'PingFang SC', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.feature-description {
  color: #64748b;
  font-family: 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 功能按钮 */
.feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.feature-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.feature-btn:hover::before {
  left: 0;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.feature-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .ai-features-section {
    width: 100%;
    padding: 60px 20px;
    border-radius: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .feature-categories {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .category-tab {
    width: 200px;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }

  .card-media {
    height: 200px;
  }

  .card-content {
    padding: 24px;
  }

  .feature-title {
    font-size: 20px;
  }

  .feature-description {
    font-size: 14px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 加载动画 */
.feature-card {
  animation: slideInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
