/* MCP 页面样式 - 浅色主题 */

/* Hero 区域 */
.mcp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mcp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 50%, #f0fdf4 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(99, 102, 241, 0.2) 50%, transparent 50%),
    radial-gradient(2px 2px at 40% 70%, rgba(139, 92, 246, 0.2) 50%, transparent 50%),
    radial-gradient(2px 2px at 60% 40%, rgba(59, 130, 246, 0.2) 50%, transparent 50%),
    radial-gradient(2px 2px at 80% 60%, rgba(16, 185, 129, 0.2) 50%, transparent 50%);
  background-size: 200px 200px;
  animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200px); }
}

.mcp-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-size: 14px;
  color: #4f46e5;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4f46e5;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  color: #111827;
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: #4b5563;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow-icon {
  transform: translateX(4px);
}

/* 架构区域 */
.architecture-section {
  padding: 100px 20px;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: #6b7280;
}

/* 架构流程 */
.architecture-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.flow-layer {
  flex: 1;
  max-width: 280px;
  padding: 32px 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.flow-layer:hover {
  transform: translateY(-8px);
  border-color: #4f46e5;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

.ai-layer { border-top: 4px solid #7c3aed; }
.mcp-layer { border-top: 4px solid #4f46e5; }
.iot-layer { border-top: 4px solid #0891b2; }

.layer-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 32px;
}

.ai-layer .layer-icon {
  background: linear-gradient(135deg, #ede9fe 0%, #f3e8ff 100%);
  color: #7c3aed;
}

.mcp-layer .layer-icon {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4f46e5;
}

.iot-layer .layer-icon {
  background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
  color: #0891b2;
}

.flow-layer h3 {
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.layer-desc {
  margin-bottom: 20px;
}

.layer-desc p {
  font-size: 14px;
  color: #6b7280;
  margin: 6px 0;
}

.layer-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.feature-tag {
  padding: 4px 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  font-size: 12px;
  color: #4b5563;
}

/* 连接器 */
.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  position: relative;
}

.connector-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #4f46e5 50%, transparent 100%);
}

.connector-animation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 4px;
  overflow: hidden;
}

.data-packet {
  width: 12px;
  height: 4px;
  background: #4f46e5;
  border-radius: 2px;
  animation: dataFlow 2s ease-in-out infinite;
}

@keyframes dataFlow {
  0% { transform: translateX(-20px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(60px); opacity: 0; }
}

.connector-label {
  margin-top: 12px;
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

/* 数据流向动画 */
.data-flow-animation {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.flow-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  flex: 1;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  position: relative;
}

.flow-item::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #e5e7eb;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.flow-item:last-child::after {
  display: none;
}

.flow-item i {
  font-size: 28px;
}

.ai-request i { color: #7c3aed; }
.mcp-tool i { color: #4f46e5; }
.iot-data i { color: #0891b2; }
.ai-response i { color: #10b981; }

.flow-item span {
  font-size: 13px;
  color: #4b5563;
}

/* 能力区域 */
.capability-section {
  padding: 100px 20px;
  background: #f9fafb;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.capability-card {
  position: relative;
  padding: 32px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: #4f46e5;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4f46e5, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.capability-card:hover .card-glow {
  opacity: 1;
}

.capability-card .card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
  border-radius: 12px;
  font-size: 24px;
  color: #4f46e5;
  margin-bottom: 20px;
}

.capability-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.capability-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.6;
}

.capability-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.capability-list li {
  font-size: 13px;
  color: #4b5563;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.capability-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4f46e5;
  border-radius: 50%;
}

.capability-list li:last-child {
  border-bottom: none;
}

/* 工具列表 */
.tools-section {
  padding: 100px 20px;
  background: #ffffff;
}

.tools-container {
  max-width: 1000px;
  margin: 0 auto;
}

.tools-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.tool-item {
  padding: 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tool-item:hover {
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-header i {
  font-size: 20px;
  color: #4f46e5;
}

.tool-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  flex: 1;
}

.tool-badge {
  padding: 4px 10px;
  background: #e0e7ff;
  border-radius: 100px;
  font-size: 12px;
  color: #4f46e5;
}

.tool-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.tool-params {
  display: flex;
  align-items: center;
  gap: 8px;
}

.param-label {
  font-size: 12px;
  color: #9ca3af;
}

.tool-params code {
  font-size: 12px;
  color: #0891b2;
  background: #ecfeff;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
}

/* 场景区域 */
.scenarios-section {
  padding: 100px 20px;
  background: #f9fafb;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.scenario-card {
  padding: 32px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.scenario-card:hover {
  transform: translateY(-4px);
  border-color: #4f46e5;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
}

.scenario-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
  border-radius: 16px;
  font-size: 28px;
  color: #7c3aed;
}

.scenario-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.scenario-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* CTA 区域 */
.cta-section {
  position: relative;
  padding: 100px 20px;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #cffafe 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 响应式 */
@media (max-width: 1024px) {
  .architecture-flow {
    flex-wrap: wrap;
    gap: 20px;
  }

  .flow-connector {
    display: none;
  }

  .flow-layer {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .flow-track {
    flex-direction: column;
  }

  .flow-item::after {
    display: none;
  }

  .flow-track {
    gap: 12px;
  }

  .flow-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .flow-item span {
    font-size: 14px;
  }
}
