﻿/* 首页样式 · NCRSIT Neo v1.4
   使用页面：/（首页）
   说明：由 style.css 剥离而来，仅包含首页专属组件；
   .neo-section、.neo-card-grid、.neo-solution-card 等共享组件仍保留在 style.css。 */

/* ---------------------------------------------------------------------------
   1. 首屏
   1.1 静态渐变首屏（非轮播兜底）
   --------------------------------------------------------------------------- */
.neo-home-hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 88px;
  color: #fff;
  background:
    linear-gradient(112deg, rgba(5, 27, 63, .96) 0%, rgba(10, 58, 125, .91) 50%, rgba(18, 113, 183, .78) 100%),
    url('/assets/images/banner/banner-home-slide-05.jpg') center/cover;
}

.neo-home-hero::after {
  position: absolute;
  right: -150px;
  bottom: -220px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, .03), 0 0 0 64px rgba(255, 255, 255, .025);
  content: '';
}

.neo-home-hero .neo-container {
  position: relative;
  z-index: 1;
}

.neo-home-hero .neo-eyebrow {
  color: #b8dcff;
}

.neo-home-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.15;
  font-weight: 800;
}

.neo-home-hero .neo-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, .84);
}

.neo-home-hero .neo-button--ghost {
  color: #fff !important;
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
}

/* 1.2 轮播首屏（主实现） */
.neo-home-hero--slider {
  position: relative;
  min-height: 670px;
  padding: 0;
  overflow: hidden;
  background: #0a3b79;
}

.neo-home-slides,
.neo-home-slide {
  position: absolute;
  inset: 0;
}

.neo-home-slide {
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  transform: translateX(18px);
  transition: opacity .65s ease, transform .65s ease, visibility .65s ease;
}

.neo-home-slide::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 27, 63, .92), rgba(7, 63, 132, .62) 58%, rgba(7, 111, 170, .16));
  content: '';
}

.neo-home-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.neo-home-slide > .neo-container {
  position: relative;
  z-index: 1;
}

.neo-home-slide .neo-eyebrow {
  color: #b8dcff;
}

.neo-home-slide h1 {
  max-width: 680px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.16;
  font-weight: 800;
}

.neo-home-slide .neo-lead {
  max-width: 620px;
  color: rgba(255, 255, 255, .84);
}

/* 移动端图片变量占位（原 v1.4 行为保留） */
.neo-home-slide[data-mobile-image] {
  --neo-home-slide-mobile: var(--neo-home-slide-desktop);
}

.neo-home-slider__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.neo-home-slider__dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, .45);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.neo-home-slider__dots button.is-active {
  width: 54px;
  background: #fff;
}

/* ---------------------------------------------------------------------------
   2. 百科式小卡（成功案例 / 新闻）
   --------------------------------------------------------------------------- */
.neo-mini-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--neo-line);
  box-shadow: 0 8px 22px rgba(25, 64, 113, .05);
}

.neo-mini-card__image {
  height: 150px;
  margin: -24px -24px 20px;
  overflow: hidden;
  background: #e9f3ff;
}

.neo-mini-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.neo-mini-card h3 {
  margin: 0 0 8px;
  color: var(--neo-ink);
  font-size: 20px;
}

.neo-mini-card p {
  margin: 0 0 15px;
  color: var(--neo-muted);
  line-height: 1.7;
}

.neo-mini-card a {
  margin-top: auto;
}

/* 新闻卡 */
.neo-news-card {
  min-height: 100%;
}

.neo-news-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 10px;
  color: #7b8ca5;
  font-size: 13px;
}

.neo-news-card__meta time {
  color: #7b8ca5;
}

.neo-news-card__summary {
  /*min-height: 48px;*/
}

.neo-news-card__link {
  display: inline-flex;
  margin-top: auto;
}

/* ---------------------------------------------------------------------------
   3. 合作伙伴
   --------------------------------------------------------------------------- */
.neo-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.neo-partner-card {
  min-height: 120px;
  padding: 22px 14px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--neo-line);
}

.neo-partner-card strong {
  display: block;
  margin-bottom: 9px;
  color: var(--neo-blue-800);
  font-size: 18px;
}

.neo-partner-card span {
  color: var(--neo-muted);
  font-size: 13px;
  line-height: 1.6;
}

.neo-partner-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.neo-partner-tabs button {
  padding: 10px 22px;
  color: var(--neo-muted);
  background: #fff;
  border: 1px solid var(--neo-line);
  border-radius: 3px;
  font-weight: 700;
  cursor: pointer;
}

.neo-partner-tabs button.is-active,
.neo-partner-tabs button:hover {
  color: #fff;
  background: var(--neo-blue-700);
  border-color: var(--neo-blue-700);
}

.neo-partner-panel {
  display: none;
}

.neo-partner-panel.is-active {
  display: block;
}

/* ---------------------------------------------------------------------------
   4. 带底图的产品介绍区
   --------------------------------------------------------------------------- */
.neo-home-delivery {
  position: relative;
  overflow: hidden;
  background-color: #eef5fc;
  background-image: var(--neo-delivery-bg);
  background-position: center;
  background-size: cover;
}

.neo-home-delivery::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(236, 245, 252, .96), rgba(236, 245, 252, .82));
  content: '';
}

.neo-home-delivery > .neo-container {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------------
   5. 响应式
   --------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .neo-home-hero {
    padding-top: 132px;
  }

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

@media (max-width: 767px) {
  .neo-home-hero {
    padding: 118px 0 76px;
  }

  .neo-home-hero--slider {
    min-height: 600px;
  }

  .neo-home-slide {
    align-items: flex-end;
    padding: 0 0 116px;
    background-position: 62% center;
  }

  .neo-home-slide h1 {
    max-width: 92vw;
    font-size: clamp(32px, 9vw, 44px);
  }

  .neo-home-slide .neo-lead {
    max-width: 88vw;
    font-size: 15px;
  }

  .neo-home-slide .neo-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .neo-home-slide .neo-actions .neo-button {
    width: 100%;
  }

  .neo-home-slider__dots {
    bottom: 42px;
  }

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

  .neo-partner-tabs {
    flex-wrap: wrap;
  }
}
