/* Flux Krea 卡片化布局样式 */

/* ========== 通用卡片样式 ========== */

.section-header {
  margin-bottom: var(--spacing-3xl);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-top: var(--spacing-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--line-height-relaxed);
}

.subsection-title {
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  position: relative;
}

.subsection-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ========== 挑战问题卡片网格 ========== */

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.challenge-card {
  padding: var(--spacing-xl);
  text-align: center;
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.challenge-card .card-icon {
  margin-bottom: var(--spacing-lg);
}

.challenge-card .icon-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--spacing-md);
}

.challenge-card .card-title {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.challenge-card .card-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
}

/* ========== 合作伙伴卡片 ========== */

.partnership-section {
  margin: var(--spacing-3xl) 0;
}

.partnership-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-top: var(--spacing-xl);
}

.partner-card {
  padding: var(--spacing-xl);
  text-align: center;
  border-radius: var(--border-radius-lg);
  position: relative;
}

.partner-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-full);
}

.partner-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.partner-name {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.partner-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.strength-tag {
  background: var(--primary-light);
  color: var(--text-inverse);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.partner-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-sm);
}

.collaboration-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-plus {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
  background: var(--bg-secondary);
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
}

/* ========== 时间线布局 ========== */

.timeline-section {
  margin: var(--spacing-3xl) 0;
}

.timeline-container {
  display: grid;
  gap: var(--spacing-xl);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-lg);
  align-items: start;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.timeline-marker {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-number {
  color: var(--text-inverse);
  font-weight: bold;
  font-size: var(--font-size-lg);
}

.timeline-content {
  padding-top: var(--spacing-sm);
}

.timeline-title {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ========== 技术指标卡片 ========== */

.tech-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

.metric-card {
  padding: var(--spacing-xl);
  text-align: center;
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
}

.metric-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.metric-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* ========== 架构详解卡片 ========== */

.architecture-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

.arch-card {
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.arch-header {
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
}

.arch-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arch-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.arch-title {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

.arch-content {
  padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl);
}

.arch-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.highlight-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.highlight-value {
  font-size: var(--font-size-sm);
  color: var(--primary-color);
  font-weight: 600;
}

.arch-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ========== 响应式适配 ========== */

@media (max-width: 768px) {
  .challenge-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .partnership-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .collaboration-icon {
    order: -1;
  }
  
  .icon-plus {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .timeline-marker {
    margin: 0 auto var(--spacing-md);
  }
  
  .tech-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .architecture-detailed-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .metric-number {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .tech-metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .challenge-card,
  .metric-card,
  .arch-card {
    padding: var(--spacing-lg);
  }
  
  .metric-number {
    font-size: 2rem;
  }
  
  .timeline-marker {
    width: 50px;
    height: 50px;
  }
  
  .partner-logo {
    width: 60px;
    height: 60px;
  }
  
  .partner-logo img {
    width: 40px;
    height: 40px;
  }
}

/* ========== 动画增强 ========== */

.challenge-card,
.partner-card,
.timeline-item,
.metric-card,
.arch-card {
  transition: all 0.3s ease;
}

.challenge-grid .challenge-card:nth-child(1) { animation-delay: 0.1s; }
.challenge-grid .challenge-card:nth-child(2) { animation-delay: 0.2s; }
.challenge-grid .challenge-card:nth-child(3) { animation-delay: 0.3s; }

.tech-metrics-grid .metric-card:nth-child(1) { animation-delay: 0.1s; }
.tech-metrics-grid .metric-card:nth-child(2) { animation-delay: 0.2s; }
.tech-metrics-grid .metric-card:nth-child(3) { animation-delay: 0.3s; }
.tech-metrics-grid .metric-card:nth-child(4) { animation-delay: 0.4s; }

.architecture-detailed-grid .arch-card:nth-child(1) { animation-delay: 0.1s; }
.architecture-detailed-grid .arch-card:nth-child(2) { animation-delay: 0.2s; }
.architecture-detailed-grid .arch-card:nth-child(3) { animation-delay: 0.3s; }
.architecture-detailed-grid .arch-card:nth-child(4) { animation-delay: 0.4s; }