/* ============================================================
   AI工作流板块新样式 - 参考图1设计
   包含：3+1卡片布局、灰色背景、圆角阴影、底部标签
   ============================================================ */

/* ============================================================
   1. 整体板块容器
   ============================================================ */
.ai-workflow-section-new {
  width: 100%;
  padding: 48px 24px;
  background: #ffffff;
}

.ai-workflow-container-new {
  max-width: 1200px;
  margin: 0 auto;
}

/* 板块标题 */
.ai-workflow-header-new {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.ai-workflow-icon-new {
  width: 24px;
  height: 24px;
  color: #666;
}

.ai-workflow-title-new {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* ============================================================
   2. 上方三个小卡片区域
   ============================================================ */
.ai-workflow-top-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.ai-workflow-card-small {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ai-workflow-card-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ai-workflow-card-small .card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.ai-workflow-card-small .card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.ai-workflow-card-small .view-detail-btn {
  font-size: 13px;
  color: #3b82f6;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ai-workflow-card-small .view-detail-btn:hover {
  color: #2563eb;
}

/* ============================================================
   3. 下方大卡片区域
   ============================================================ */
.ai-workflow-bottom-card {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.ai-workflow-bottom-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ai-workflow-bottom-card .card-title-main {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.ai-workflow-bottom-card .card-subtitle {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.ai-workflow-bottom-card .card-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* 实验详情网格 */
.ai-workflow-experiment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.ai-workflow-experiment-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
}

.ai-workflow-experiment-item .item-label {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-workflow-experiment-item .item-content {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.ai-workflow-experiment-item .item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-workflow-experiment-item .item-list li {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.ai-workflow-experiment-item .item-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b82f6;
}

/* 阅读全文按钮 */
.ai-workflow-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #3b82f6;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-workflow-read-more:hover {
  color: #2563eb;
  gap: 10px;
}

.ai-workflow-read-more svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   4. 底部标签导航
   ============================================================ */
.ai-workflow-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-workflow-tag {
  padding: 8px 20px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.ai-workflow-tag:hover,
.ai-workflow-tag.active {
  background: #e8f0fe;
  color: #3b82f6;
  border-color: #3b82f6;
}

/* ============================================================
   5. 模态弹窗样式
   ============================================================ */
.ai-workflow-modal-overlay-new {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.ai-workflow-modal-overlay-new.active {
  opacity: 1;
  visibility: visible;
}

.ai-workflow-modal-new {
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ai-workflow-modal-overlay-new.active .ai-workflow-modal-new {
  transform: scale(1) translateY(0);
}

.ai-workflow-modal-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.ai-workflow-modal-title-new {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.ai-workflow-modal-close-new {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ai-workflow-modal-close-new:hover {
  background: #e8e8e8;
}

.ai-workflow-modal-close-new svg {
  width: 18px;
  height: 18px;
  color: #666;
}

.ai-workflow-modal-body-new {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}

.ai-workflow-modal-section-new {
  margin-bottom: 20px;
}

.ai-workflow-modal-section-new:last-child {
  margin-bottom: 0;
}

.ai-workflow-modal-section-title-new {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-workflow-modal-section-content-new {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.ai-workflow-modal-tools-new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-workflow-modal-tool-tag-new {
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 16px;
  font-size: 12px;
  color: #555;
}

/* ============================================================
   6. 移动端适配
   ============================================================ */
@media (max-width: 768px) {
  .ai-workflow-section-new {
    padding: 32px 16px;
  }

  .ai-workflow-title-new {
    font-size: 20px;
  }

  /* 移动端：上方卡片改为单列 */
  .ai-workflow-top-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ai-workflow-card-small {
    padding: 20px;
  }

  .ai-workflow-card-small .card-title {
    font-size: 15px;
  }

  /* 下方大卡片 */
  .ai-workflow-bottom-card {
    padding: 20px;
  }

  .ai-workflow-bottom-card .card-title-main {
    font-size: 16px;
  }

  /* 实验详情改为单列 */
  .ai-workflow-experiment-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ai-workflow-experiment-item {
    padding: 14px;
  }

  /* 标签换行 */
  .ai-workflow-tags {
    gap: 8px;
  }

  .ai-workflow-tag {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* 弹窗适配 */
  .ai-workflow-modal-new {
    max-height: 90vh;
    margin: 0 10px;
  }

  .ai-workflow-modal-body-new {
    padding: 20px;
    max-height: calc(90vh - 76px);
  }
}

@media (max-width: 480px) {
  .ai-workflow-section-new {
    padding: 24px 12px;
  }

  .ai-workflow-header-new {
    margin-bottom: 24px;
  }

  .ai-workflow-title-new {
    font-size: 18px;
  }

  .ai-workflow-card-small {
    padding: 16px;
  }

  .ai-workflow-bottom-card {
    padding: 16px;
  }

  .ai-workflow-experiment-item {
    padding: 12px;
  }
}
