/* ========== BladeAI 风格首页 ========== */

.ba-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  /* 与神经网络脑图 / royal 同轴 */
  background: var(--royal-950);
}

.ba-hero__canvas,
.ba-hero__veil,
.ba-hero__slides {
  position: absolute;
  inset: 0;
}

.ba-hero__canvas {
  z-index: 0;
}

.ba-hero__art-wrap,
.ba-hero__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.ba-hero__field,
.ba-hero__mesh,
.ba-hero__core,
.ba-hero__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ba-hero__art-wrap {
  inset: -1.5%;
  width: 103%;
  height: 103%;
  display: block;
  overflow: hidden;
}

.ba-hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  z-index: 1;
  /* 深蓝脑图已对齐 brand，轻对比即可 */
  filter: contrast(1.05) saturate(1.06);
  opacity: 0;
  transition: opacity 0.55s ease;
  will-change: transform, object-position, opacity;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1.015);
}

.ba-hero__art.is-ready {
  opacity: 1;
}

/* Layer 02：brand 光场，呼应脑核与橙节点 */
.ba-hero__field {
  background:
    radial-gradient(ellipse 40% 38% at 50% 46%, rgba(47, 127, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 28% 30% at 22% 58%, rgba(34, 103, 199, 0.1), transparent 72%),
    radial-gradient(ellipse 24% 26% at 78% 42%, rgba(255, 156, 0, 0.05), transparent 74%);
  mix-blend-mode: screen;
  animation: baFieldBreath 22s ease-in-out infinite alternate;
  opacity: 0.55;
  pointer-events: none;
}

@keyframes baFieldBreath {
  0% { opacity: 0.35; }
  100% { opacity: 0.6; }
}

.ba-hero__fx {
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.ba-hero__mesh {
  background-image:
    linear-gradient(rgba(125, 172, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 172, 240, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 55% 48% at 50% 48%, transparent 0%, transparent 40%, #000 90%);
  animation: baMeshDrift 40s linear infinite;
  opacity: 0.22;
}

@keyframes baMeshDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 80px 80px, 80px 80px; }
}

.ba-hero__core {
  background:
    radial-gradient(ellipse 26% 30% at 50% 48%, rgba(47, 127, 255, 0.14), transparent 68%),
    radial-gradient(ellipse 12% 14% at 50% 52%, rgba(255, 156, 0, 0.06), transparent 70%);
  filter: none;
  mix-blend-mode: screen;
  animation: baCoreBreath 8s ease-in-out infinite;
}

@keyframes baCoreBreath {
  0%, 100% {
    opacity: 0.28;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.03);
  }
}

.ba-hero__scan {
  left: 0;
  right: 0;
  height: 90px;
  top: -20%;
  background: linear-gradient(180deg, transparent, rgba(47, 127, 255, 0.03), transparent);
  animation: baScan 16s linear infinite;
}

@keyframes baScan {
  0% { top: -16%; }
  100% { top: 110%; }
}

/* 顶部轻压 + 底部渐变桥接到 surface，避免白撞白 */
.ba-hero__veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 13, 34, 0.35) 0%, transparent 22%),
    radial-gradient(ellipse 55% 42% at 50% 48%, rgba(5, 13, 34, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, transparent 58%, rgba(5, 13, 34, 0.45) 82%, #f3f7fc 100%);
}

.ba-hero__slides {
  z-index: 0;
  pointer-events: none;
}

.ba-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  background: transparent;
}

.ba-hero__slide.is-active {
  opacity: 1;
}

.ba-hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 4.5rem) 1.5rem 5.5rem;
  max-width: 920px;
  animation: baHeroIn 0.85s var(--ease) both;
}

@keyframes baHeroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ba-hero__copy {
  position: relative;
  margin-bottom: 2rem;
}

.ba-hero__title {
  margin: 0 auto;
  max-width: 16em;
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.28;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(4, 12, 32, 0.55),
    0 4px 28px rgba(4, 12, 32, 0.45);
  display: none;
}

.ba-hero__title.is-active {
  display: block;
}

.ba-hero__tagline {
  margin: 1.15rem auto 0;
  max-width: 28em;
  font-size: var(--fs-hero-sub);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  text-shadow: 0 1px 16px rgba(4, 12, 32, 0.45);
  display: none;
}

.ba-hero__tagline.is-active {
  display: block;
}

.ba-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.ba-hero__actions .btn {
  min-width: 160px;
  min-height: 52px;
  padding: 0 1.85rem;
  font-size: 1.05rem;
}

.ba-hero__pager {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.ba-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.ba-hero__dot.is-active {
  background: #fff;
  width: 26px;
  border-radius: 999px;
}

.ba-hero__scroll {
  position: absolute;
  left: 1.5rem;
  bottom: 2rem;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(232, 238, 248, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.ba-hero__mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  position: relative;
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
}

.ba-hero__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: baMouse 1.6s ease-in-out infinite;
}

@keyframes baMouse {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.35;
    transform: translateY(6px);
  }
}

.ba-hero__scroll:hover {
  color: #fff;
}

/* —— About：左文右图 —— */
.ba-about {
  background: var(--surface);
}

.ba-about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.ba-rule {
  width: 56px;
  height: 2px;
  background: var(--brand-500);
  margin: 0.2rem 0 1.35rem;
}

.ba-about__text {
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.ba-about__list {
  margin: 0 0 1.75rem;
}

.ba-about__list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
  font-size: var(--fs-body);
}

.ba-about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-500);
}

.ba-about__visual {
  min-height: 380px;
}

.ba-about__photo {
  position: relative;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* 与 Hero 神经网络同色相：royal → brand */
  background:
    radial-gradient(ellipse 55% 45% at 68% 28%, rgba(47, 127, 255, 0.4), transparent 58%),
    radial-gradient(ellipse 35% 40% at 30% 70%, rgba(255, 156, 0, 0.12), transparent 60%),
    linear-gradient(155deg, var(--royal-800), var(--royal-950) 48%, #0a1a3d 78%, #1a3a6e);
  box-shadow: var(--shadow-soft);
}

.ba-about__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 180, 90, 0.18) 55%, transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(5, 13, 34, 0.45));
}

.ba-about__photo-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: 12%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 80, 0.35), transparent 70%);
  filter: blur(10px);
}

.ba-about__photo-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  color: #fff;
  z-index: 1;
}

.ba-about__photo-caption span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
}

.ba-about__photo-caption strong {
  font-size: 1.35rem;
  font-weight: 700;
}

/* —— Media showcase —— */
.ba-media__head {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.ba-media__head .section__title,
.ba-media__head .section__lead {
  margin-left: auto;
  margin-right: auto;
}

.ba-media__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.ba-media__tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 238, 248, 0.78);
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.ba-media__tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.ba-media__tab.is-active {
  color: #fff;
  background: var(--brand-500);
  border-color: var(--brand-500);
  box-shadow: 0 8px 24px rgba(47, 127, 255, 0.35);
}

.ba-media__panel {
  display: none;
}

.ba-media__panel.is-active {
  display: block;
}

.ba-media__layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(6, 20, 51, 0.35);
  min-height: 420px;
}

.ba-media__stage {
  position: relative;
  min-height: 420px;
  background: #061433;
}

.ba-media__slides {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.ba-media__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease);
}

.ba-media__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ba-media__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ba-media__visual--brand {
  background:
    radial-gradient(circle at 30% 35%, rgba(47, 127, 255, 0.5), transparent 45%),
    linear-gradient(135deg, #0f2d6b, #2267c7 55%, #0a1f4d);
}

.ba-media__visual--system {
  background: linear-gradient(135deg, #163d8c, #2f7fff);
}

.ba-media__visual--ai {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(125, 172, 240, 0.5), transparent 50%),
    linear-gradient(145deg, #0a1f4d, #1a4fad);
}

.ba-media__visual--data {
  background: linear-gradient(120deg, #0f2d6b, #438aff);
}

.ba-media__visual--vision {
  background:
    radial-gradient(circle at 40% 60%, rgba(255, 156, 0, 0.22), transparent 40%),
    linear-gradient(160deg, #061433, #163d8c);
}

.ba-media__visual--delivery {
  background: linear-gradient(150deg, #143a7a, #2f7fff 70%, #0a1f4d);
}

.ba-media__visual--scenes {
  background: linear-gradient(135deg, #1a4fad, #0f2d6b);
}

.ba-media__slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ba-media__slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ba-media__play {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(6, 20, 51, 0.35);
}

.ba-media__play span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--royal-900);
}

.ba-media__meta {
  position: absolute;
  left: 1.35rem;
  bottom: 1.35rem;
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 12px rgba(6, 20, 51, 0.45);
}

.ba-media__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.ba-media__meta span {
  font-size: 0.95rem;
  color: rgba(232, 238, 248, 0.88);
}

.ba-media__controls {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ba-media__nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(6, 20, 51, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 1.15rem;
}

.ba-media__nav:hover {
  background: rgba(47, 127, 255, 0.55);
}

.ba-media__dots {
  display: flex;
  gap: 0.35rem;
  margin: 0 0.25rem;
}

.ba-media__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.ba-media__dot.is-active {
  background: #fff;
}

.ba-media__side {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ba-media__side h3 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  color: #fff;
}

.ba-media__side p {
  margin: 0 0 1.75rem;
  color: rgba(232, 238, 248, 0.75);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* —— Scenes —— */
.ba-scenes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.ba-scene {
  padding: 2rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 280px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ba-scene:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.ba-scene__index {
  font-family: var(--font-display);
  color: var(--brand-500);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.ba-scene h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

.ba-scene > p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.ba-scene ul {
  margin-bottom: 1.35rem;
}

.ba-scene li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  padding-left: 0.9rem;
  position: relative;
}

.ba-scene li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-400);
}

.ba-scene a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* —— Products —— */
.ba-products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.ba-product {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(125, 172, 240, 0.22);
  color: #fff;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(47, 127, 255, 0.28), transparent 55%),
    linear-gradient(150deg, var(--royal-800), var(--royal-950));
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.ba-product__tag {
  margin: 0 0 1rem;
  color: var(--brand-300);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.ba-product h3 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.ba-product p {
  margin: 0 0 1.75rem;
  color: rgba(232, 238, 248, 0.75);
  font-size: 1.02rem;
  line-height: 1.7;
  flex: 1;
}

.ba-product .btn--outline {
  align-self: flex-start;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.ba-product .btn--outline:hover {
  background: #fff;
  color: var(--royal-900);
  border-color: #fff;
}

/* —— Stats —— */
.ba-stats {
  padding: 0 0 1rem;
  margin-top: -1.5rem;
}

.ba-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.ba-stats__item {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid var(--line);
}

.ba-stats__item:last-child {
  border-right: 0;
}

.ba-stats__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--brand-600);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ba-stats__label {
  color: var(--muted);
  font-size: 1rem;
}

/* —— News —— */
.ba-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.ba-news__card {
  padding: 1.75rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.ba-news__card time {
  font-family: var(--font-display);
  color: var(--brand-600);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.ba-news__card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.ba-news__card h3 a {
  color: var(--ink);
}

.ba-news__card h3 a:hover {
  color: var(--brand-600);
}

.ba-news__card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.ba-news__more {
  font-weight: 600;
  font-size: 0.92rem;
}

.ba-news__all {
  margin: 2rem 0 0;
  text-align: center;
}

/* —— Contact band —— */
.ba-contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.ba-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 980px) {
  .ba-about__grid,
  .ba-media__layout,
  .ba-scenes__grid,
  .ba-products__grid,
  .ba-news__grid,
  .ba-stats__grid {
    grid-template-columns: 1fr;
  }

  .ba-media__side {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ba-stats__item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ba-stats__item:last-child {
    border-bottom: 0;
  }

  .ba-hero__title {
    font-size: clamp(2.55rem, 9.5vw, 3.4rem);
  }
}
