/* ==========================================================================
   index.css — 首页专属样式：Banner + 粒子动效 + 数据条 + 优势卡片 + 主打产品 + 案例 + 咨询表单
   青岛青云之志科技有限公司官网
   ========================================================================== */

/* === Banner 大图区 === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A1628 0%, #0A5CFF 100%);
  overflow: hidden;
  text-align: center;
  color: var(--color-white);
}

.hero__grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* 粒子动效 */
.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__particle {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.4;
  animation: floating 6s ease-in-out infinite;
}

.hero__particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; width: 6px; height: 6px; }
.hero__particle:nth-child(2) { top: 25%; left: 80%; animation-delay: 1s; width: 10px; height: 10px; }
.hero__particle:nth-child(3) { top: 60%; left: 15%; animation-delay: 2s; width: 7px; height: 7px; }
.hero__particle:nth-child(4) { top: 70%; left: 85%; animation-delay: 0.5s; width: 9px; height: 9px; }
.hero__particle:nth-child(5) { top: 40%; left: 50%; animation-delay: 1.5s; width: 5px; height: 5px; }
.hero__particle:nth-child(6) { top: 80%; left: 40%; animation-delay: 2.5s; width: 8px; height: 8px; }
.hero__particle:nth-child(7) { top: 20%; left: 30%; animation-delay: 3s; width: 6px; height: 6px; }
.hero__particle:nth-child(8) { top: 55%; left: 65%; animation-delay: 1.8s; width: 10px; height: 10px; }

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--navbar-height);
}

.hero__title {
  font-size: var(--fs-banner-title);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero__subtitle {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-small);
  animation: fadeInUp 1s ease 1s both;
}

.hero__scroll-arrow {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
}

.hero__scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* === 数据条 === */
.stats-bar {
  padding: var(--space-lg) 0;
}

.stats-bar .grid {
  gap: var(--space-md);
}

/* === 我们的优势 === */
.advantages-grid {
  gap: var(--space-md);
}

.advantage-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid transparent;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}

.advantage-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-button);
  background: rgba(10, 92, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-md);
}

.advantage-card__title {
  font-size: var(--fs-card-title);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-dark);
}

.advantage-card__desc {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

/* === 客户案例数据（首页） === */
.case-highlight {
  text-align: center;
  padding: var(--space-lg);
}

.case-highlight__number {
  font-family: var(--font-family-number);
  font-size: var(--fs-data-number);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.case-highlight__label {
  font-size: var(--fs-card-title);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.case-highlight__desc {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

/* === 在线咨询表单 === */
.consult-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.consult-section__info {
  padding-right: var(--space-md);
}

.consult-section__desc {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.consult-section__list {
  list-style: none;
}

.consult-section__list li {
  font-size: var(--fs-body);
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
}

.consult-section__form {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

/* === 响应式 === */
@media (max-width: 1023px) {
  .consult-section {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .consult-section__info {
    padding-right: 0;
    text-align: center;
  }

  .consult-section__list {
    display: inline-block;
    text-align: left;
  }

  .hero__title {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 90vh;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: var(--fs-small);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__scroll-hint {
    display: none;
  }

  .consult-section__form {
    padding: var(--space-md);
  }

  .stats-bar .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-highlight {
    padding: var(--space-md);
  }
}
