/**
 * Home Page Styles
 * 七有企业官网 - 首页专属样式
 */

/* ===================================
   1. Hero Section
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, rgba(0, 102, 204, 0.6), rgba(0, 184, 148, 0.4)); */
  background: rgba(0,0,0,0.1);
  z-index: 2;
}

.hero-content {
  position: relative;
  top: 0px;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 var(--spacing-md);
}

.hero-title {
  font-size: var(--font-5xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: var(--font-xl);
  font-weight: 400;
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease;
}

.hero-buttons .btn {
  min-width: 180px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   2. 核心价值摘要
   =================================== */
.value-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.value-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.value-card {
  background: #fff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.value-card h3 {
  font-size: var(--font-2xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.value-card p {
  font-size: var(--font-md);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================
   3. 核心业务快速入口
   =================================== */
.business-grid {
  margin-top: var(--spacing-xl);
}

.business-card {
  text-align: center;
  padding: var(--spacing-xl);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
}

.business-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px) scale(1.02);
}

.business-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.business-card .card-title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.business-card .card-description {
  color: var(--text-secondary);
}

/* ===================================
   4. 核心产品展示
   =================================== */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-xl);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.product-showcase.reverse {
  direction: rtl;
}

.product-showcase.reverse > * {
  direction: ltr;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.product-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.product-showcase:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: var(--spacing-lg);
}

.product-name {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.product-tagline {
  font-size: var(--font-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.product-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.product-features li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-md);
  line-height: 1.6;
  color: var(--text-primary);
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
  font-size: var(--font-lg);
}

.product-features strong {
  color: var(--primary-color);
}

/* ===================================
   5. 最新动态
   =================================== */
.news-grid {
  margin-top: var(--spacing-xl);
}

.news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card .card-image {
  height: 220px;
  object-fit: cover;
}

.news-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-sm);
}

.news-date {
  color: var(--text-light);
}

.news-category {
  color: var(--primary-color);
  font-weight: 500;
}

.news-card .card-description {
  flex: 1;
  margin-bottom: var(--spacing-md);
}

.news-card .btn {
  align-self: flex-start;
}

/* ===================================
   6. 合作伙伴
   =================================== */
.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  align-items: center;
  margin-top: var(--spacing-xl);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  min-height: 120px;
}

.partner-logo:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===================================
   7. 响应式适配（移动端）
   =================================== */
@media (max-width: 767px) {
  .hero {
    height: 80vh;
    min-height: 500px;
    margin-top: 56px;
  }

  .hero-title {
    font-size: var(--font-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-md);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .value-points {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .value-card {
    padding: var(--spacing-lg);
  }

  .value-icon {
    font-size: 3rem;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .product-showcase.reverse {
    direction: ltr;
  }

  .product-image {
    order: -1;
  }

  .product-name {
    font-size: var(--font-2xl);
  }

  .product-info {
    padding: var(--spacing-sm);
  }

  .partners-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .partner-logo {
    padding: var(--spacing-md);
    min-height: 100px;
  }
}

@media (max-width: 479px) {
  .hero {
    height: 70vh;
    min-height: 450px;
  }

  .hero-title {
    font-size: var(--font-2xl);
  }

  .partners-logos {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   8. 平板适配
   =================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-showcase {
    grid-template-columns: 1fr;
  }

  .product-showcase.reverse {
    direction: ltr;
  }

  .partners-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}
