﻿/* ==========================================================================
   NEXUS Home — home.css
   首页专属：主视觉 / 产品优势 / 关于 / 产品 / 案例 / 热销 / 新闻
   ========================================================================== */

/* ==========================================================================
   主视觉
   ========================================================================== */

.nx-hero {
  position: relative;
  height: min(92vh, 940px);
  min-height: 560px;
  background: var(--nx-graphite);
  overflow: hidden;
}

.nx-hero__swiper,
.nx-hero__swiper .swiper-wrapper,
.nx-hero__swiper .swiper-slide { height: 100%; }

.nx-hero__slide { position: relative; overflow: hidden; }

.nx-hero__media { position: absolute; inset: 0; }

.nx-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 18, 22, .88) 0%, rgba(16, 18, 22, .55) 48%, rgba(16, 18, 22, .18) 100%),
    linear-gradient(0deg, rgba(16, 18, 22, .42) 0%, transparent 32%);
}

.nx-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: nxKenburns calc(var(--nx-hero-duration) * 1.3) linear infinite alternate;
  will-change: transform;
}

@keyframes nxKenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

.nx-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 96px;
}

.nx-hero__content { max-width: 720px; }

.nx-hero__title {
  font-size: clamp(34px, 5.4vw, 74px);
  line-height: 1.06;
  letter-spacing: var(--nx-ls-tight);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--nx-sp-5);
}

.nx-hero__text {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
  color: rgba(255, 255, 255, .78);
  max-width: 54ch;
  margin-bottom: var(--nx-sp-6);
}

.nx-hero__btn { box-shadow: var(--nx-shadow-amber); }

/* 底部控制条 */
.nx-hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(16, 18, 22, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.nx-hero__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-sp-4);
  height: 64px;
}

.nx-hero__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--nx-font-display);
  color: #fff;
}

.nx-hero__count span { font-size: 22px; }

.nx-hero__count i {
  width: 34px;
  height: 1px;
  background: var(--nx-amber);
  transform: translateY(-4px);
}

.nx-hero__bar .swiper-pagination {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  flex: 1;
}

.nx-hero__bar .swiper-pagination-bullet {
  width: 30px;
  height: 2px;
  margin: 0 !important;
  border-radius: 0;
  background: rgba(255, 255, 255, .35);
  opacity: 1;
  transition: background-color var(--nx-dur) var(--nx-ease), width var(--nx-dur) var(--nx-ease);
}

.nx-hero__bar .swiper-pagination-bullet-active {
  background: var(--nx-amber);
  width: 46px;
}

.nx-hero__nav { display: flex; gap: 8px; }

.nx-hero__arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--nx-radius);
  color: #fff;
  cursor: pointer;
  transition: all var(--nx-dur) var(--nx-ease);
}

.nx-hero__arrow:hover {
  background: var(--nx-amber);
  border-color: var(--nx-amber);
}

/* ==========================================================================
   通用箭头组（各轮播区头部）
   ========================================================================== */

.nx-arrows { display: flex; gap: 10px; }

.nx-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  color: var(--nx-ink);
  cursor: pointer;
  transition: all var(--nx-dur) var(--nx-ease);
}

.nx-arrow:hover {
  background: var(--nx-graphite);
  border-color: var(--nx-graphite);
  color: #fff;
}

.nx-section--dark .nx-arrow {
  border-color: var(--nx-graphite-line);
  color: #fff;
}

.nx-section--dark .nx-arrow:hover {
  background: var(--nx-amber);
  border-color: var(--nx-amber);
}

/* ==========================================================================
   产品优势
   ========================================================================== */

.nx-cap__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--nx-sp-4);
}

.nx-cap__item {
  padding: var(--nx-sp-6) var(--nx-sp-5);
  transition: transform var(--nx-dur) var(--nx-ease),
              box-shadow var(--nx-dur) var(--nx-ease),
              border-color var(--nx-dur) var(--nx-ease);
}

.nx-cap__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--nx-sp-5);
}

.nx-cap__top .iconfont {
  font-size: 40px;
  color: var(--nx-amber);
  line-height: 1;
}

.nx-cap__num {
  font-family: var(--nx-font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--nx-ink-20);
  transition: color var(--nx-dur) var(--nx-ease);
}

.nx-cap__item:hover .nx-cap__num { color: var(--nx-amber); }

.nx-cap__title {
  font-size: 18px;
  margin-bottom: 10px;
}

.nx-cap__text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--nx-ink-70);
  margin-bottom: var(--nx-sp-4);
}

.nx-cap__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: var(--nx-ls-caps);
  text-transform: uppercase;
  color: var(--nx-ink-45);
  transition: color var(--nx-dur-fast) var(--nx-ease), gap var(--nx-dur-fast) var(--nx-ease);
}

.nx-cap__more em { font-size: 12px; }

.nx-cap__item:hover .nx-cap__more { color: var(--nx-amber-deep); gap: 14px; }

/* ==========================================================================
   关于我们
   ========================================================================== */

.nx-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.nx-about__media { position: relative; }

.nx-about__video {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-graphite);
}

.nx-about__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nx-about__mark {
  position: absolute;
  top: -22px;
  right: -22px;
  z-index: 0;
  width: 46%;
  height: 38%;
  border: 2px solid var(--nx-amber);
  border-radius: var(--nx-radius);
  pointer-events: none;
}

.nx-about__info { max-width: 560px; }

.nx-about__info .nx-eyebrow { margin-bottom: var(--nx-sp-4); }

.nx-about__info .nx-h1 { margin-bottom: var(--nx-sp-5); }

.nx-about__content {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--nx-ink-70);
  margin-bottom: var(--nx-sp-5);
}

.nx-about__list {
  display: grid;
  gap: var(--nx-sp-4);
  margin-bottom: var(--nx-sp-6);
}

.nx-about__list li {
  display: flex;
  gap: var(--nx-sp-4);
  align-items: flex-start;
}

.nx-about__list li > em {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-sand);
  border: 1px solid var(--nx-line);
  border-radius: 50%;
  color: var(--nx-amber);
  font-size: 16px;
}

.nx-about__list h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.nx-about__list p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--nx-ink-70);
}

/* ==========================================================================
   主推产品
   ========================================================================== */

.nx-prod__swiper { padding: 6px; margin: -6px; }

.nx-prod__swiper .swiper-slide { height: auto; }

.nx-prod__swiper .nx-pcard { height: 100%; }

.nx-prod__more {
  display: flex;
  justify-content: center;
  margin-top: var(--nx-sp-6);
}

/* ==========================================================================
   案例
   ========================================================================== */

.nx-cases__swiper { padding: 6px; margin: -6px; }

.nx-case {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--nx-radius);
  background: #101216;
}

.nx-case .nx-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 18, 22, .85) 0%, rgba(16, 18, 22, 0) 55%);
}

.nx-case__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-sp-3);
  padding: var(--nx-sp-4);
}

.nx-case__bar span {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.nx-case__bar em {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-amber);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  transform: translateY(40px);
  opacity: 0;
  transition: all var(--nx-dur) var(--nx-ease-out);
}

.nx-case:hover .nx-case__bar em {
  transform: translateY(0);
  opacity: 1;
}

.nx-cases__swiper .swiper-pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--nx-sp-5);
}

.nx-cases__swiper .swiper-pagination-bullet {
  width: 26px;
  height: 2px;
  margin: 0 !important;
  border-radius: 0;
  background: var(--nx-graphite-line);
  opacity: 1;
}

.nx-cases__swiper .swiper-pagination-bullet-active {
  background: var(--nx-amber);
}

/* ==========================================================================
   热销产品
   ========================================================================== */

.nx-hot__swiper { padding: 6px; margin: -6px; }

.nx-hcard {
  position: relative;
  display: block;
}

.nx-hcard__index {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-amber);
  color: #fff;
  font-family: var(--nx-font-display);
  font-size: 15px;
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow-sm);
}

.nx-hcard .nx-frame {
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
}

.nx-hcard__title {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  text-align: center;
  transition: color var(--nx-dur-fast) var(--nx-ease);
}

.nx-hcard:hover .nx-hcard__title { color: var(--nx-amber-deep); }

/* ==========================================================================
   新闻
   ========================================================================== */

.nx-news__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nx-sp-4);
}

.nx-ncard { display: block; height: 100%; }

.nx-ncard__date {
  position: absolute;
  left: var(--nx-sp-4);
  bottom: -1px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  background: var(--nx-amber);
  color: #fff;
  font-family: var(--nx-font-display);
  line-height: 1.1;
}

.nx-ncard__date strong { font-size: 22px; font-weight: 600; }

.nx-ncard__date span {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}

.nx-ncard__title {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
  transition: color var(--nx-dur-fast) var(--nx-ease);
}

.nx-ncard:hover .nx-ncard__title { color: var(--nx-amber-deep); }

.nx-ncard__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--nx-ink-70);
  margin-bottom: var(--nx-sp-3);
}

.nx-ncard__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: var(--nx-ls-caps);
  text-transform: uppercase;
  color: var(--nx-ink-45);
  transition: color var(--nx-dur-fast) var(--nx-ease), gap var(--nx-dur-fast) var(--nx-ease);
}

.nx-ncard:hover .nx-ncard__more { color: var(--nx-amber-deep); gap: 14px; }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .nx-cap__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-about__grid { grid-template-columns: 1fr; }
  .nx-about__mark { display: none; }
}

@media (max-width: 900px) {
  .nx-hero { height: 76vh; min-height: 480px; }
  .nx-hero__inner { align-items: flex-end; padding-bottom: 92px; }
}

@media (max-width: 640px) {
  .nx-cap__grid { grid-template-columns: 1fr; }
  .nx-news__grid { grid-template-columns: 1fr; }
  .nx-hero { height: 68vh; min-height: 420px; }
  .nx-hero__media img { object-position: 65% center; }
  .nx-hero__count { display: none; }
  .nx-hero__bar .swiper-pagination { justify-content: flex-start; }
  .nx-hero__arrow { width: 38px; height: 38px; }
}
