/* ===========================
   灵秫科技 - Hero Banner 轮播
   =========================== */

.hero-banner {
  margin-top: 68px; /* 为固定导航栏留出空间 */
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a1628;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  z-index: 1;
}
.banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* ---- 媒体层 ---- */
.banner-media {
  position: absolute;
  inset:0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.banner-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a1628;
}

/* ---- 遮罩层 ---- */
.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ---- 内容层 ---- */
.banner-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  color: white;
}
.banner-content.align-center {
  align-items: center;
  text-align: center;
}
.banner-content.align-left {
  align-items: flex-start;
  text-align: left;
}
.banner-content.align-right {
  align-items: flex-end;
  text-align: right;
}

.banner-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.banner-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.banner-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 32px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.banner-content.align-center .banner-subtitle {
  max-width: 640px;
}
.banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.banner-btn.primary {
  background: white;
  color: #0f3460;
}
.banner-btn.primary:hover {
  background: #e8effe;
  transform: translateY(-1px);
}
.banner-btn.outline {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}
.banner-btn.outline:hover {
  background: rgba(255,255,255,0.22);
}

/* ---- 指示点 ---- */
.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.banner-dot.active {
  background: white;
  width: 28px;
  border-radius: 5px;
}
.banner-dot:hover {
  background: rgba(255,255,255,0.6);
}

/* ---- 左右箭头 ---- */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}
.banner-arrow:hover {
  background: rgba(255,255,255,0.25);
}
.banner-arrow.prev { left: 24px; }
.banner-arrow.next { right: 24px; }

/* ---- 自动播放指示条 ---- */
.banner-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.3);
  z-index: 10;
  transition: width 0.1s linear;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .banner-title { font-size: 32px; }
  .banner-subtitle { font-size: 15px; }
  .banner-arrow { display: none; }
  .banner-content { padding: 0 20px; }
}
@media (max-width: 600px) {
  .banner-title { font-size: 26px; }
  .banner-subtitle { font-size: 14px; margin-bottom: 24px; }
  .banner-btn { padding: 10px 20px; font-size: 14px; }
}
