/* 自定义首页样式 - homepage-custom.css */
/* 基础重置 */
.custom-homepage {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
}

.custom-homepage * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section - Compact */
.hp-hero {
  position: relative;
  padding: 30px 0 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}

.hp-hero-bg {
  display: none;
}

.hp-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #1f2937;
}

.hp-hero-badge {
  display: none;
}

.hp-hero-subtitle {
  font-size: 14px;
  color: #6b7280;
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.hp-hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.hp-stat {
  text-align: center;
}

.hp-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #3b82f6;
  display: inline;
}

.hp-stat-label {
  font-size: 12px;
  color: #9ca3af;
  display: inline;
  margin-left: 4px;
}

/* AI Highlight Section */
.hp-ai-highlight {
  padding: 30px 0;
  background: #fff;
}

.hp-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hp-ai-card {
  position: relative;
  display: block;
  padding: 28px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  overflow: hidden;
}

.hp-ai-api {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}

.hp-ai-openclaw {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
}

.hp-ai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.hp-ai-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.hp-ai-badge-new {
  background: rgba(16, 185, 129, 0.9);
}

.hp-ai-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.hp-ai-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.hp-ai-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
}

.hp-ai-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hp-ai-features span {
  font-size: 12px;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.hp-ai-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-ai-stat {
  text-align: center;
}

.hp-ai-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6;
}

.hp-ai-stat span {
  font-size: 11px;
  color: #9ca3af;
}

.hp-ai-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
}

.hp-ai-arrow {
  transition: transform 0.3s ease;
}

.hp-ai-card:hover .hp-ai-arrow {
  transform: translateX(4px);
}

/* Services Section */
.hp-services {
  padding: 80px 0;
  background: #f8fafc;
}

.hp-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.hp-section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.hp-section-desc {
  font-size: 16px;
  color: #6b7280;
}

.hp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hp-service-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.hp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.hp-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.hp-card-apple .hp-card-icon { background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%); }
.hp-card-google .hp-card-icon { background: linear-gradient(135deg, #34d399 0%, #10b981 100%); }
.hp-card-api .hp-card-icon { background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%); }
.hp-card-cursor .hp-card-icon { background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%); }
.hp-card-ranking .hp-card-icon { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.hp-card-report .hp-card-icon { background: linear-gradient(135deg, #f87171 0%, #ef4444 100%); }

.hp-service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.hp-service-card > p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hp-card-features {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}

.hp-card-features li {
  font-size: 13px;
  color: #4b5563;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.hp-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 600;
}

.hp-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.hp-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #3b82f6;
}

.hp-card-action {
  font-size: 14px;
  color: #6b7280;
  transition: color 0.3s ease;
}

.hp-service-card:hover .hp-card-action {
  color: #3b82f6;
}

/* Advantages Section */
.hp-advantages {
  padding: 80px 0;
  background: #fff;
}

.hp-advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hp-advantage-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.hp-advantage-card:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hp-adv-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.hp-advantage-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.hp-advantage-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* CTA Section */
.hp-cta {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.hp-cta-content {
  text-align: center;
  color: #1f2937;
}

.hp-cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
}

.hp-cta-content p {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 32px;
}

.hp-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Contact Section */
.hp-contact {
  padding: 80px 0;
  background: #f8fafc;
}

.hp-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hp-contact-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.hp-contact-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.hp-contact-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.hp-contact-card p {
  font-size: 14px;
  color: #6b7280;
}

/* H5 Mobile Responsive */
@media (max-width: 768px) {
  .hp-hero {
    padding: 20px 16px 16px;
  }
  
  .hp-hero-subtitle {
    font-size: 12px;
    padding: 0;
    margin-bottom: 14px;
    line-height: 1.4;
  }
  
  .hp-hero-stats {
    gap: 16px;
    justify-content: center;
  }
  
  .hp-stat-num {
    font-size: 18px;
  }
  
  .hp-stat-label {
    font-size: 10px;
  }
  
  .hp-ai-highlight {
    padding: 20px 0;
  }
  
  .hp-ai-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hp-ai-card {
    padding: 20px;
  }
  
  .hp-ai-icon {
    font-size: 36px;
    margin-bottom: 12px;
  }
  
  .hp-ai-card h3 {
    font-size: 18px;
  }
  
  .hp-ai-stats {
    gap: 16px;
  }
  
  .hp-ai-stat strong {
    font-size: 16px;
  }
  
  .hp-services {
    padding: 48px 0;
  }
  
  .hp-section-title {
    font-size: 24px;
  }
  
  .hp-section-desc {
    font-size: 14px;
  }
  
  .hp-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hp-service-card {
    padding: 24px;
  }
  
  .hp-card-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  
  .hp-service-card h3 {
    font-size: 18px;
  }
  
  .hp-advantages {
    padding: 48px 0;
  }
  
  .hp-advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .hp-advantage-card {
    padding: 24px 16px;
  }
  
  .hp-adv-icon {
    font-size: 32px;
  }
  
  .hp-advantage-card h4 {
    font-size: 16px;
  }
  
  .hp-cta {
    padding: 48px 0;
  }
  
  .hp-cta-content h2 {
    font-size: 24px;
  }
  
  .hp-cta-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .hp-contact {
    padding: 48px 0;
  }
  
  .hp-contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .hp-contact-card {
    padding: 24px 16px;
  }
}
