/* 首页首屏：Banner + 产品跑马灯，随 html.dark 切换浅色/深色 */

:root {
  --home-marquee-height: 178px;
  --home-locale-height: 0px;
  --home-navbar-height: 0px;
  --home-banner-bg: #f1f5f9;
  --home-banner-overlay: transparent;
  --home-banner-title: #111928;
  --home-banner-summary: rgb(17 25 40 / 78%);
  --home-banner-btn-primary-bg: #111928;
  --home-banner-btn-primary-color: #fff;
  --home-banner-btn-primary-hover: #1f2937;
  --home-banner-btn-ghost-bg: rgb(17 25 40 / 8%);
  --home-banner-btn-ghost-color: #111928;
  --home-banner-btn-ghost-hover-bg: #111928;
  --home-banner-btn-ghost-hover-color: #fff;
  --home-banner-control-border: rgb(17 25 40 / 22%);
  --home-banner-control-bg: rgb(255 255 255 / 72%);
  --home-banner-control-color: #111928;
  --home-banner-dot: rgb(17 25 40 / 28%);
  --home-banner-dot-active: #111928;
  /* 顶部压暗渐变高度 + 颜色： .nuoan-video-cover::before 的 300px linear-gradient */
  --home-banner-cover-height: 300px;
  --home-banner-cover-top: rgb(0 0 0 / 30%);
  --home-nav-overlay: linear-gradient(
    180deg,
    rgb(255 255 255 / 88%) 0%,
    rgb(255 255 255 / 52%) 72%,
    transparent 100%
  );
  --home-nav-link-color: #111928;
  --home-nav-icon-color: #111928;
}

html.dark {
  --home-banner-bg: #111928;
  --home-banner-overlay: transparent;
  --home-banner-title: #fff;
  --home-banner-summary: rgb(255 255 255 / 92%);
  --home-banner-btn-primary-bg: #fff;
  --home-banner-btn-primary-color: #111928;
  --home-banner-btn-primary-hover: #f3f4f6;
  --home-banner-btn-ghost-bg: rgb(255 255 255 / 14%);
  --home-banner-btn-ghost-color: #fff;
  --home-banner-btn-ghost-hover-bg: #fff;
  --home-banner-btn-ghost-hover-color: #111928;
  --home-banner-control-border: rgb(255 255 255 / 35%);
  --home-banner-control-bg: rgb(17 25 40 / 35%);
  --home-banner-control-color: #fff;
  --home-banner-dot: rgb(255 255 255 / 38%);
  --home-banner-dot-active: #fff;
  --home-banner-cover-top: rgb(0 0 0 / 30%);
  --home-nav-overlay: linear-gradient(
    180deg,
    rgb(17 25 40 / 78%) 0%,
    rgb(17 25 40 / 42%) 72%,
    transparent 100%
  );
  --home-nav-link-color: #fff;
  --home-nav-icon-color: #fff;
}

@media (width >= 1024px) {
  :root {
    --home-marquee-height: 212px;
  }
}

.nuoan-home-first-screen {
  position: relative;
  z-index: 0;
  background-color: var(--home-banner-bg);
  transition: background-color 0.25s ease;
}

body:has(.nuoan-home-first-screen) .nuoan-ud-header {
  z-index: 999;
  opacity: 1;
}

/* 首屏导航遮罩随主题切换 */
body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.nuoan-ud-header-scrolled) {
  background: var(--home-nav-overlay);
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, color 0.25s ease;
}

@media (width >= 1024px) {
  html:not(.dark) body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.nuoan-ud-header-scrolled) .nuoan-home-nav-link {
    color: var(--home-nav-link-color);
  }

  html:not(.dark) body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.sticky) .nuoan-home-nav-link:hover {
    color: var(--color-primary, #3056d3);
    opacity: 1;
  }

  html.dark body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.sticky) .nuoan-home-nav-link {
    color: var(--home-nav-link-color);
  }

  html.dark body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.sticky) .nuoan-home-nav-link:hover {
    opacity: 0.7;
  }
}

html:not(.dark) body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.sticky) .nuoan-home-nav-icon,
html:not(.dark) body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.sticky) .locale-switcher-btn {
  color: var(--home-nav-icon-color);
  background-color: transparent;
}

html:not(.dark) body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.sticky) .nuoan-home-nav-toggler {
  background-color: var(--home-nav-icon-color);
}

html.dark body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.sticky) .nuoan-home-nav-icon,
html.dark body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.sticky) .locale-switcher-btn {
  color: var(--home-nav-icon-color);
  background-color: transparent;
}

html.dark body:has(.nuoan-home-first-screen) .nuoan-ud-header:not(.sticky) .nuoan-home-nav-toggler {
  background-color: var(--home-nav-icon-color);
}

.nuoan-home-first-screen:has(.nuoan-locale-choose) {
  --home-locale-height: clamp(136px, 17vh, 172px);
}

/* 首页 Banner：规则取自  Home CSS 的 #nuoan-home-banner .nuoan-banner-2，选择器改到 #home。
   video_cover 自身高度为 0，顶部压暗来自 ::before，颗粒层来自 ::after。 */
/* 片源 2560×1440（16:9）：高度跟宽度走，去掉 1000px 上限，避免 cover 裁切上下 */
#home.nuoan-home-banner {
  max-height: none;
  overflow: hidden;
  background-color: #000;
}

#home .nuoan-slide-warp {
  background-position: center center;
  background-size: cover;
  height: 100%;
  overflow: hidden;
}

/* 用 Swiper 5：.swiper-container { position:relative; z-index:1 }。
   当前包只给 .swiper 定位，不补这层的话分页和 video_cover 伪元素会相对更外层定位，底部分页被 overflow 裁掉。 */
#home .nuoan-banner-2 .swiper-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: calc(100vw * 9 / 16);
  max-height: none;
  overflow: hidden;
}

#home .nuoan-banner-2 .swiper-slide {
  overflow: hidden;
  background: #fff;
  z-index: 10;
}

#home .nuoan-banner-2 .swiper-slide-active {
  z-index: 11;
}

#home .nuoan-banner-2 .nuoan-slide {
  background-position: center center;
  background-size: cover;
  background: none;
}

#home .nuoan-banner-2 .nuoan-image,
#home .nuoan-banner-2 .nuoan-video {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#home .nuoan-banner-2 .nuoan-link-image {
  display: block;
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background-size: cover;
  transition: all ease 2s;
  transform: scale(1.1);
}

#home .nuoan-banner-2 .swiper-slide-active .nuoan-link-image {
  transform: scale(1);
}

#home .nuoan-banner-2 .nuoan-video-poster {
  display: block;
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background-size: cover;
  transition: transform ease 2s;
  transform: scale(1);
  cursor: pointer;
  z-index: 19;
}

#home .nuoan-banner-2 .swiper-slide-active .nuoan-video-poster {
  transform: scale(1);
}

#home .nuoan-banner-2 .nuoan-link-image > img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100%;
  height: 100%;
}

#home .nuoan-banner-2 .nuoan-video-poster img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  width: auto;
  height: 100%;
}

#home .nuoan-banner-2 .nuoan-info {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 1600px;
  padding-right: 0;
  padding-left: 0;
  z-index: 22;
  transform: translate(-50%, -50%);
  display: block;
}

#home .nuoan-banner-2 .nuoan-info-fivebox {
  width: 100%;
  text-align: center;
}

#home .nuoan-banner-2 .nuoan-banner-eyebrow {
  max-width: 800px;
  font-family: "Montserrat-B", "Montserrat", sans-serif;
  font-size: 50px;
  line-height: 1.2;
  text-align: left;
  color: transparent;
  -webkit-text-stroke: 0.6px #fff;
  text-shadow: 3px 0 10px rgb(22 78 145 / 0%);
  opacity: 0;
  transform: translateY(40px);
  transition: all ease 2s 0.5s;
}

#home .nuoan-banner-2 .nuoan-banner-eyebrow svg {
  fill: #fff;
  width: 120px;
}

#home .nuoan-banner-2 .swiper-slide-active .nuoan-banner-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

#home .nuoan-banner-2 .nuoan-banner-eyebrow img {
  max-width: 110px;
  opacity: 1;
}

#home .nuoan-banner-2 .nuoan-banner-title {
  max-width: 800px;
  margin: 20px 0 0;
  color: #fff;
  font-family: "Montserrat-B", "Montserrat", sans-serif;
  font-size: clamp(3.5vw, 3vw, 6vw);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: left;
  text-shadow: 0 1px 1px #000;
  opacity: 0;
  transform: translateY(40px);
  transition: all ease 2s 0.7s;
}

#home .nuoan-banner-2 .swiper-slide-active .nuoan-banner-title {
  opacity: 1;
  transform: translateY(0);
}

#home .nuoan-banner-2 .nuoan-summary {
  max-width: 800px;
  margin: 20px auto 0 0;
  color: #fff;
  font-family: "Montserrat-Regular", "Montserrat", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: left;
  text-shadow: 0 1px 1px #000;
  opacity: 0;
  transform: translateY(40px);
  transition: all ease 2s 1s;
}

#home .nuoan-banner-2 .swiper-slide-active .nuoan-summary {
  opacity: 1;
  transform: translateY(0);
}

#home .nuoan-banner-2 .nuoan-slide-count {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  height: 5px;
  margin: 25px auto;
  opacity: 0;
  transform: translateY(40px);
  transition: all 2s ease 0.8s;
}

#home .nuoan-banner-2 .nuoan-banner-button {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 46px;
  margin-top: 40px;
  margin-right: auto;
  margin-left: 0;
  padding: 0 15px;
  border: 2px solid #e70014;
  border-radius: 30px;
  background: #e70014;
  color: #fff;
  font-family: "Montserrat-B", "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(40px);
  transition: all ease 0.3s, transform ease 2s 1s, opacity ease 0.8s 0.9s;
}

#home .nuoan-banner-2 .nuoan-banner-button:hover {
  border: 2px solid #fff;
  background: #fff;
  color: #e70014;
}

#home .nuoan-banner-2 .swiper-slide-active .nuoan-banner-button,
#home .nuoan-banner-2 .swiper-slide-active .nuoan-slide-count {
  opacity: 1;
  transform: translateY(0);
}

#home .nuoan-banner-2 .nuoan-slide-count::before {
  content: "";
  position: absolute;
  z-index: 1;
  display: inline-block;
  width: 100%;
  height: 1px;
  margin-right: auto;
  border-radius: 0;
  background: #fff;
}

#home .nuoan-banner-2 .nuoan-slide-count::after {
  content: "";
  position: absolute;
  z-index: 2;
  display: inline-block;
  width: 60px;
  height: 5px;
  margin-right: auto;
  border-radius: 0;
  background: #e70014;
}

#home .nuoan-banner-2 .nuoan-scroll {
  position: absolute;
  bottom: 40px;
  left: calc((100% - 90px) / 2);
  z-index: 10;
  display: none;
  width: 90px;
  color: #fff;
}

#home .nuoan-banner-2 .nuoan-scroll span {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-family: arial, sans-serif;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
}

#home .nuoan-banner-2 .nuoan-scroll i {
  position: relative;
  display: block;
  width: 20px;
  height: 30px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 12px;
}

#home .nuoan-banner-2 .nuoan-scroll i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  display: block;
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, 0);
  animation: scrollmouse 2s linear infinite;
}

@keyframes scrollmouse {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  to {
    transform: translate(-50%, 10px);
    opacity: 0;
  }
}

#home .nuoan-banner-2 .nuoan-space {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: none;
  width: 100%;
  max-width: 100px;
  height: 100%;
  border-left: 1px solid rgb(255 255 255 / 10%);
  pointer-events: none;
}

#home .nuoan-banner-2 .swiper-pagination {
  position: absolute;
  top: auto;
  right: 6%;
  bottom: 40px;
  left: calc(50% - 100px);
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 200px;
  height: auto;
  color: #fff;
}

#home .nuoan-banner-2 .swiper-pagination-bullet {
  width: 36px;
  height: 36px;
  margin: 3px 5px !important;
  border-radius: 100px;
  background: rgb(255 255 255 / 50%);
  color: #fff;
  font-size: 14px;
  line-height: 36px;
  text-align: center;
  opacity: 1;
  transition: all ease 0.3s;
}

#home .nuoan-banner-2 .swiper-pagination-bullet-active,
#home .nuoan-banner-2 .swiper-pagination-bullet:hover {
  background: #e70014;
  border-radius: 100px;
}

/* 左右切换：容器铺满，按钮分别贴左右中线；pointer-events 避免挡住文案点击 */
#home .nuoan-banner-2 .nuoan-banner-arrow {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#home .nuoan-banner-2 .nuoan-slide-next,
#home .nuoan-banner-2 .nuoan-slide-prev {
  position: absolute;
  top: 50%;
  z-index: 12;
  width: 50px;
  height: 50px;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: rgb(0 0 0 / 28%);
  color: #fff;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: background 0.25s ease, border-color 0.25s ease;
}

#home .nuoan-banner-2 .nuoan-slide-prev {
  left: 24px;
  right: auto;
}

#home .nuoan-banner-2 .nuoan-slide-next {
  right: 24px;
  left: auto;
}

#home .nuoan-banner-2 .nuoan-slide-next::after,
#home .nuoan-banner-2 .nuoan-slide-prev::after {
  font-size: 16px;
}

#home .nuoan-banner-2 .nuoan-slide-next:hover,
#home .nuoan-banner-2 .nuoan-slide-prev:hover {
  border-color: #e70014;
  background: #e70014;
}

#home .nuoan-banner-2 .nuoan-slide-next:hover::after,
#home .nuoan-banner-2 .nuoan-slide-prev:hover::after {
  color: #fff;
}

#home .nuoan-banner-2 .nuoan-video-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  cursor: pointer;
}

#home .nuoan-banner-2 .nuoan-video-content video {
  width: 100%;
  height: 100%;
  /* contain：完整画面；容器已按 16:9 定高，与 cover 等效且不裁切 */
  object-fit: contain;
  object-position: center center;
  background: #000;
  filter: brightness(0.9) grayscale(0);
}

#home .nuoan-banner-2 .nuoan-video-button {
  position: absolute;
  right: 0;
  bottom: 160px;
  z-index: 110;
  width: 100%;
  max-width: 100px;
  height: 50px;
}

#home .nuoan-banner-2 .nuoan-video-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 100%;
  color: #fff;
  cursor: pointer;
  transform: translateX(-50%);
  transition: all ease 0.3s;
}

#home .nuoan-banner-2 .nuoan-video-button svg {
  width: 15px;
  margin: 0 auto;
}

#home .nuoan-banner-2 .nuoan-video-bottom:hover {
  border: 2px solid #075a61;
  background: #075a61;
}

#home .nuoan-banner-2 .nuoan-video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 21;
  /* 原 thefastimg 底纹 UUID 已 404，且本层 opacity:0 不可见；去掉远程引用避免控制台报错 */
  background: none;
  opacity: 0;
}

#home .nuoan-banner-2 .nuoan-video-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 22;
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 30%) 0, rgb(0 0 0 / 0%) 100%);
}

@media screen and (min-width: 769px) {
  #home .nuoan-banner-2 .nuoan-summary {
    max-width: 800px;
  }
}

@media screen and (max-width: 768px) {
  #home .nuoan-banner-2 .nuoan-info-fivebox {
    width: 100%;
    padding-bottom: 0;
  }

  #home .nuoan-banner-2 .nuoan-info {
    top: 50%;
    width: 90%;
    padding-right: 0;
    padding-left: 0;
  }

  #home .nuoan-banner-2 .nuoan-scroll,
  #home .nuoan-banner-2 .nuoan-summary,
  #home .nuoan-banner-2 .nuoan-space,
  #home .nuoan-banner-2 .nuoan-banner-arrow,
  #home .nuoan-banner-2 .nuoan-scroll span,
  #home .nuoan-banner-2 .nuoan-video-cover::before,
  #home .nuoan-banner-2 .nuoan-link-image > img {
    display: none;
  }

  #home .nuoan-banner-2 .nuoan-banner-eyebrow {
    font-size: 14px;
  }

  #home .nuoan-banner-2 .nuoan-banner-title {
    margin-top: 5px;
    font-size: 18px;
    line-height: 1.3;
  }

  #home .nuoan-banner-2 .nuoan-slide-count {
    display: none;
    margin-top: 0;
  }

  #home .nuoan-banner-2 .nuoan-slide-count::before {
    width: 25px;
    height: 2px;
  }

  #home .nuoan-banner-2 .nuoan-video-button {
    bottom: 106px;
    max-width: 55px;
    height: 28px;
  }

  #home .nuoan-banner-2 .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 3px !important;
    font-size: 0;
  }

  #home .nuoan-banner-2 .swiper-pagination-bullet-active {
    width: 20px;
  }

  #home .nuoan-banner-2 .swiper-pagination-bullet:hover {
    height: 6px;
  }

  #home .nuoan-banner-2 .nuoan-slide-prev,
  #home .nuoan-banner-2 .nuoan-slide-next,
  #home .nuoan-banner-2 .nuoan-video-button span {
    width: 28px;
    height: 28px;
  }

  #home .nuoan-banner-2 .nuoan-slide-prev {
    margin: 5px auto 0;
  }

  #home .nuoan-banner-2 .nuoan-slide-prev::after,
  #home .nuoan-banner-2 .nuoan-slide-next::after {
    font-size: 12px;
  }

  /* 移动端同样按 16:9 定高，避免 35vh 裁切画面 */
  #home .nuoan-banner-2 .swiper-container {
    height: calc(100vw * 9 / 16);
    margin-top: 56px;
  }

  #home .nuoan-banner-2 .nuoan-video-button svg {
    width: 12px;
  }

  #home .nuoan-banner-2 .swiper-pagination {
    right: auto;
    bottom: 15px;
    left: auto;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: auto;
    transform: unset;
  }

  #home .nuoan-banner-2 .nuoan-banner-button {
    max-width: 130px;
    height: 36px;
    margin-top: 15px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 32px;
  }

  #home .nuoan-banner-2 .nuoan-banner-eyebrow img {
    max-width: 60px;
  }

  #home .nuoan-banner-2 .nuoan-banner-eyebrow svg {
    width: 50px;
  }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
  #home .nuoan-banner-2 .swiper-container {
    height: 100vh;
  }

  #home .nuoan-banner-2 .nuoan-banner-eyebrow img {
    max-width: 120px;
  }

  #home .nuoan-banner-2 .nuoan-info {
    padding-right: 5%;
    padding-left: 5%;
  }

  #home .nuoan-banner-2 .nuoan-banner-button {
    display: none;
  }
}

@media screen and (max-width: 1440px) and (min-width: 1366px) {
  #home .nuoan-banner-2 .nuoan-info {
    max-width: 1300px;
  }

  #home .nuoan-banner-2 .nuoan-summary {
    max-width: 600px;
    font-size: 16px;
  }

  #home .nuoan-banner-2 .nuoan-banner-eyebrow img {
    max-width: 90px;
  }

  #home .nuoan-banner-2 .nuoan-banner-eyebrow {
    font-size: 50px;
  }
}

@media screen and (max-width: 1366px) and (min-width: 1025px) {
  #home .nuoan-banner-2 .nuoan-info {
    max-width: 1200px;
  }

  #home .nuoan-banner-2 .nuoan-summary {
    max-width: 600px;
    font-size: 16px;
  }

  #home .nuoan-banner-2 .nuoan-banner-eyebrow img {
    max-width: 90px;
  }

  #home .nuoan-banner-2 .nuoan-banner-eyebrow {
    font-size: 50px;
  }
}

.nuoan-home-first-screen .nuoan-product-marquee-bridge {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (width >= 1024px) {
  .nuoan-home-first-screen .nuoan-product-marquee-bridge {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}
