@charset "UTF-8";
/* ============================================================================
   home.css — 首页专有：轮播 Banner
   ========================================================================== */

.banner-wrap {
  position: relative;
  height: var(--banner-h);
  overflow: hidden;
  background: var(--deep);
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-banner);
}

.banner-slide.active {
  opacity: 1;
  z-index: 2; /* 保证当前屏在背景气氛层之上 */
}

.banner-slide .bg {
  position: absolute;
  inset: 0;
}

/* 缺图时的渐变回退底（设计稿说明：缺图自动回退为渐变底） */
.banner-bg1 {
  background: linear-gradient(135deg, #0A4A8C, #4693D0);
}

.banner-bg2 {
  background: linear-gradient(135deg, #083A6E, #14B8A6);
}

.banner-bg3 {
  background: linear-gradient(135deg, #0A4A8C, #0E9F91);
}

/* 真实轮播图容器（有图时覆盖渐变底） */
.banner-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-media .banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(4, 30, 62, .55) 0%,
    rgba(4, 30, 62, .26) 46%,
    rgba(4, 30, 62, .06) 78%);
}

.banner-txt {
  position: relative;
  z-index: 3;
  color: #fff;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.banner-txt h1,
.banner-txt h2 {
  font-size: var(--fs-7xl);
  font-weight: 800;
  margin-bottom: var(--sp-4);
  text-shadow: 0 4px 26px rgba(0, 20, 60, .38);
}

.banner-txt p {
  font-size: 17px;
  opacity: .9;
  margin-bottom: var(--sp-6);
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  border: none;
  font-size: var(--fs-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-arrow:hover {
  background: rgba(255, 255, 255, .35);
}

.banner-arrow.prev {
  left: 20px;
}

.banner-arrow.next {
  right: 20px;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: var(--sp-2);
}

.banner-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  border: none;
  padding: 0;
  transition: var(--ease-slow);
}

.banner-dots .dot.active {
  background: #fff;
  width: 26px;
  border-radius: 6px;
}

/* 上升气泡（由 effects.js 注入） */
.banner-wrap .bub {
  position: absolute;
  bottom: -46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, .22);
  z-index: 2;
  pointer-events: none;
  animation: bubRise linear infinite;
}

@keyframes bubRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: .7; }
  100% { transform: translateY(-580px) scale(1.3); opacity: 0; }
}

/* 首页 Banner 呼吸光 */
.banner-slide.active .bg {
  animation: bannerBreath 7s ease-in-out infinite;
}

@keyframes bannerBreath {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

/* Banner 内按钮：白底白字不可见 → 改为半透明玻璃底 */
.banner-wrap .btn-outline {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: #fff;
  backdrop-filter: blur(4px);
}

.banner-wrap .btn-outline:hover {
  background: rgba(255, 255, 255, .26);
  box-shadow: 0 4px 16px rgba(0, 20, 60, .3);
}

/* --------------------------------------------------------------------------
   首页分区标题（核心技术 / 应用场景 / 平台服务 / 新闻资讯）
   -------------------------------------------------------------------------- */
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.home-section-head h3 {
  color: var(--deep);
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: var(--fs-xl);
}

.home-section-head .more {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 400;
}

.home-section-head .more:hover {
  color: var(--deep);
}

/* 加入我们 CTA 区 */
.cta-band {
  background: linear-gradient(135deg, var(--deep), var(--light));
  color: #fff;
}

.cta-band h2 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-3);
}

.cta-band p {
  opacity: .9;
  margin-bottom: var(--sp-6);
}

.cta-band .btn {
  background: #fff;
  color: var(--deep);
}
