/* =====================================================
   首页 (Home) 专用样式
   ===================================================== */

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide .placeholder-img.hero-bg {
  width: 100%;
  height: 100%;
  font-size: 16px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 72px;
  color: #fff;
  width: 100%;
  z-index: 2;
}
.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
  padding: 0;
}
.hero-dots .dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ===== 应用案例卡片 ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  display: flex;
  flex-direction: column;
}
.case-card .cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.case-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.case-card:hover .cover img {
  transform: scale(1.04);
}
.case-card .cover .placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
}

.case-card .body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-card .tags {
  margin-bottom: 10px;
}
.case-card .title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 10px;
}
.case-card .summary {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.case-card .date {
  font-size: 13px;
  color: var(--color-text-light);
}
.case-card .more {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 500;
}

/* ===== 合作伙伴 ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}
.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  height: 80px;
  background: #fff;
  transition: box-shadow var(--transition);
}
.partner-item:hover {
  box-shadow: var(--shadow-card);
}
.partner-item img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter var(--transition);
}
.partner-item:hover img {
  filter: grayscale(0);
}
.partner-placeholder {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== 响应式 ===== */
@media (max-width: 1199px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    height: 360px;
  }
}

@media (max-width: 767px) {
  .hero {
    height: 340px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 300px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
