/* 首页样式 */

/* Hero Section 基础样式 */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

/* Hero背景渐变 - 9个首页hero section */
.hero-section:nth-child(1) { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%); }
.hero-section:nth-child(2) { background: linear-gradient(135deg, #581c87 0%, #7e22ce 50%, #a855f7 100%); }
.hero-section:nth-child(3) { background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%); }
.hero-section:nth-child(4) { background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #dc2626 100%); }
.hero-section:nth-child(5) { background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #d97706 100%); }
.hero-section:nth-child(6) { background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%); }
.hero-section:nth-child(7) { background: linear-gradient(135deg, #064e3b 0%, #059669 50%, #10b981 100%); }
.hero-section:nth-child(8) { background: linear-gradient(135deg, #831843 0%, #be185d 50%, #ec4899 100%); }
.hero-section:nth-child(9) { background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #a78bfa 100%); }

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-container.hero-reverse {
  flex-direction: row-reverse;
}

.hero-content {
  flex: 1;
  animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.hero-image {
  flex: 1;
  animation: fadeInRight 0.8s ease-out 0.3s both;
  min-height: 400px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
}

.hero-image:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  animation: floatUp 3s ease-in-out infinite;
  transition: all 0.6s ease;
}

.hero-image:hover img {
  transform: scale(1.08);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 0.75rem;
  color: white;
  margin-bottom: 30px;
  font-weight: 800;
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 50px;
  max-width: 500px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-features {
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.hero-features i {
  color: #10b981;
  flex-shrink: 0;
}

/* Hero subtitle 品牌色映射 */
.hero-section:nth-child(1) .hero-subtitle {
  background-color: #3b82f6;
}

.hero-section:nth-child(2) .hero-subtitle {
  background-color: #a855f7;
}

.hero-section:nth-child(3) .hero-subtitle {
  background-color: #22c55e;
}

.hero-section:nth-child(4) .hero-subtitle {
  background-color: #dc2626;
}

.hero-section:nth-child(5) .hero-subtitle {
  background-color: #f97316;
}

.hero-section:nth-child(6) .hero-subtitle {
  background-color: #475569;
}

.hero-section:nth-child(7) .hero-subtitle {
  background-color: #059669;
}

.hero-section:nth-child(8) .hero-subtitle {
  background-color: #be185d;
}

.hero-section:nth-child(9) .hero-subtitle {
  background-color: #7c3aed;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: white;
  padding: 18px 48px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.hero-btn:hover {
  background-color: white;
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.hero-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.hero-btn:hover i {
  transform: translateX(3px);
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-image:hover .image-placeholder {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* 产品分类部分 */
.products-section {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  padding: 80px 20px;
}

.products-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.products-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: white;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-enterprise:hover {
  border-color: #3b82f6;
}

.product-industrial:hover {
  border-color: #f97316;
}

.product-warsoul:hover {
  border-color: #dc2626;
}

.product-custom:hover {
  border-color: #a855f7;
}

.card-image {
  width: 100%;
  height: auto;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.product-enterprise:hover h3 { color: #3b82f6; }
.product-industrial:hover h3 { color: #f97316; }
.product-warsoul:hover h3 { color: #dc2626; }
.product-custom:hover h3 { color: #a855f7; }

.card-temp {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 15px;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-top: auto;
  transition: gap 0.3s ease;
}

.product-enterprise .card-link { color: #3b82f6; }
.product-industrial .card-link { color: #f97316; }
.product-warsoul .card-link { color: #dc2626; }
.product-custom .card-link { color: #a855f7; }

.product-card:hover .card-link {
  gap: 12px;
}

/* 优势部分 */
.advantages-section {
  background: white;
  padding: 80px 20px;
}

.advantages-header {
  text-align: center;
  margin-bottom: 60px;
}

.advantages-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 15px;
}

.advantages-header p {
  font-size: 1.1rem;
  color: #6b7280;
}

.advantages-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.advantage-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
  transform: translateY(-3px);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: white;
  transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.1);
}

.advantage-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatUp {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 60px 20px 40px;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-container.hero-reverse {
    flex-direction: column;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .products-section {
    padding: 60px 20px;
  }

  .products-header h2 {
    font-size: 1.75rem;
  }

  .advantages-section {
    padding: 60px 20px;
  }

  .advantages-header h2 {
    font-size: 1.75rem;
  }

  .advantage-card {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 50px 15px 30px;
  }

  .hero-container {
    gap: 30px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-features {
    gap: 10px;
  }

  .hero-features li {
    font-size: 0.85rem;
  }

  .image-placeholder {
    font-size: 3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-header h2 {
    font-size: 1.5rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .advantages-header h2 {
    font-size: 1.5rem;
  }
}
