/* 首页 Hero：左文案 + 右插画，仅文案/插画切换 */
.xq-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 70% 55% at 88% 18%, rgba(59, 130, 246, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 12% 80%, rgba(59, 130, 246, 0.06), transparent 50%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}
.xq-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px 48px;
  align-items: center;
  min-height: 360px;
}
.xq-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.xq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.xq-hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.xq-hero-text-stage {
  position: relative;
  min-height: 268px;
  height: auto;
  overflow: hidden;
}
.xq-hero-text {
  position: absolute;
  inset: 0 auto auto 0;
  right: 0;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition:
    opacity .35s ease,
    transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.xq-hero-text.is-active {
  position: relative;
  inset: auto;
  right: auto;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}
.xq-hero-text.is-leave {
  opacity: 0;
  transform: translateY(36px);
  z-index: 1;
}
.xq-hero-text h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 750;
  line-height: 1.28;
  color: #111827;
  letter-spacing: -0.02em;
}
.xq-hero-text p {
  margin: 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.75;
  color: #4b5563;
}
.xq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.xq-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.xq-hero-btn--primary {
  background: #3b82f6;
  color: #fff !important;
}
.xq-hero-btn--primary:hover {
  background: #3b82f6;
  color: #fff !important;
  transform: translateY(-1px);
}
.xq-hero-btn--ghost {
  background: #fff;
  color: #3b82f6 !important;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.xq-hero-btn--ghost:hover {
  background: #f5f8ff;
  color: #3b82f6 !important;
}
.xq-hero-feats {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(230, 235, 242, 0.95);
  box-shadow: 0 10px 28px rgba(15, 55, 120, 0.05);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.xq-hero-feat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease;
}
.xq-hero-feat:hover,
.xq-hero-feat:focus,
.xq-hero-feat:focus-visible {
  color: #3b82f6;
  outline: none !important;
  box-shadow: none !important;
}
.xq-hero-feat i {
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: #3b82f6;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: background .18s ease, color .18s ease;
}
.xq-hero-feat.is-active {
  color: #3b82f6;
}
.xq-hero-feat.is-active i {
  background: #3b82f6;
  color: #fff;
}
.xq-hero-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 400px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  overflow: visible;
}
.xq-hero-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.82);
  pointer-events: none;
  transition:
    opacity .32s ease,
    transform .32s cubic-bezier(0.22, 1, 0.36, 1);
}
.xq-hero-art.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}
.xq-hero-art.is-leave {
  opacity: 0;
  transform: scale(0.9);
  z-index: 1;
}
.xq-hero-art > img,
.xq-hero-art > svg {
  width: min(100%, 440px);
  height: auto;
  max-height: 340px;
  object-fit: contain;
  display: block;
}
.xq-hero-photo {
  position: relative;
  width: min(100%, 500px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}
.xq-hero-photo img,
.xq-hero-photo video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 14px;
  border: 0;
  background: #fff;
  box-shadow: none;
}
.xq-hero-photo video {
  background: #0b0f1a;
}
.xq-hero-photo--lg {
  width: min(100%, 500px);
}
/* 第一屏品牌：周围仅不规则游走圆球，无线条 */
.xq-brand-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.xq-brand-balls {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.xq-ball {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.45);
  opacity: 0.75;
  will-change: transform;
}
.xq-ball--a { width: 10px; height: 10px; left: 8%; top: 18%; animation: xqWanderA 9s ease-in-out infinite; }
.xq-ball--b { width: 7px; height: 7px; left: 22%; top: 8%; animation: xqWanderB 11s ease-in-out infinite; }
.xq-ball--c { width: 12px; height: 12px; left: 48%; top: 4%; animation: xqWanderC 8s ease-in-out infinite; }
.xq-ball--d { width: 6px; height: 6px; right: 22%; top: 9%; left: auto; animation: xqWanderA 10s ease-in-out infinite reverse; }
.xq-ball--e { width: 9px; height: 9px; right: 7%; top: 20%; left: auto; animation: xqWanderB 12s ease-in-out infinite; }
.xq-ball--f { width: 8px; height: 8px; right: 5%; top: 48%; left: auto; animation: xqWanderC 9.5s ease-in-out infinite reverse; }
.xq-ball--g { width: 11px; height: 11px; right: 10%; bottom: 18%; top: auto; left: auto; animation: xqWanderA 11.5s ease-in-out infinite; }
.xq-ball--h { width: 6px; height: 6px; right: 28%; bottom: 7%; top: auto; left: auto; animation: xqWanderB 8.5s ease-in-out infinite reverse; }
.xq-ball--i { width: 10px; height: 10px; left: 46%; bottom: 5%; top: auto; animation: xqWanderC 10.5s ease-in-out infinite; }
.xq-ball--j { width: 7px; height: 7px; left: 18%; bottom: 10%; top: auto; animation: xqWanderA 13s ease-in-out infinite reverse; }
.xq-ball--k { width: 9px; height: 9px; left: 5%; bottom: 28%; top: auto; animation: xqWanderB 9s ease-in-out infinite; }
.xq-ball--l { width: 8px; height: 8px; left: 4%; top: 46%; animation: xqWanderC 12.5s ease-in-out infinite reverse; }

.xq-hero-art.is-active .xq-ball {
  animation-play-state: running;
}
.xq-hero-art:not(.is-active) .xq-ball {
  animation-play-state: paused;
}

@keyframes xqWanderA {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(14px, -18px); }
  40% { transform: translate(-10px, -28px); }
  60% { transform: translate(18px, -8px); }
  80% { transform: translate(-12px, 12px); }
}
@keyframes xqWanderB {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-16px, 10px); }
  50% { transform: translate(12px, 22px); }
  75% { transform: translate(8px, -14px); }
}
@keyframes xqWanderC {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(10px, 12px); }
  35% { transform: translate(-18px, 6px); }
  55% { transform: translate(-6px, -20px); }
  75% { transform: translate(16px, -10px); }
}

.xq-brand-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(76%, 320px);
  margin: 0 auto;
  box-sizing: border-box;
}
.xq-brand-item {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20%;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef1f6;
  box-shadow: 0 4px 14px rgba(15, 40, 80, 0.05);
  box-sizing: border-box;
  will-change: transform;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.xq-brand-item:hover {
  transform: translateY(-2px);
  border-color: #d7e3ff;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.1);
}
.xq-brand-grid.is-busy .xq-brand-item:hover {
  transform: none;
  border-color: #eef1f6;
  box-shadow: 0 4px 14px rgba(15, 40, 80, 0.05);
}
.xq-brand-item.is-swapping {
  pointer-events: none;
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.14);
  border-color: #d7e3ff;
}
.xq-brand-item svg {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .xq-ball {
    animation: none !important;
  }
  .xq-brand-item.is-swapping {
    transition: none !important;
  }
}
/* 旧椭圆布局保留类名以免历史残留报错，不再使用 */
.xq-eco,
.xq-eco-center,
.xq-eco-item,
.xq-eco-ring,
.xq-eco-dot,
.xq-eco-shadow {
  display: none !important;
}
.xq-hero-dots {
  display: none !important;
}
.xq-hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #c5cedd;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.xq-hero-dot.is-active {
  width: 28px;
  background: #3b82f6;
}
@media (max-width: 991.98px) {
  .xq-hero {
    padding: 36px 0 32px;
    overflow: visible;
  }
  .xq-hero-row {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    gap: 0;
    min-height: 0;
    align-items: stretch;
  }
  .xq-hero-copy {
    display: contents;
  }
  .xq-hero-badge {
    order: 1;
    margin-bottom: 14px;
  }
  .xq-hero-text-stage {
    order: 2;
    min-height: 236px;
    height: auto;
    margin-bottom: 4px;
  }
  .xq-hero-visual {
    order: 3;
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    margin: 12px 0 4px;
  }
  .xq-hero-art.is-active {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
  }
  .xq-hero-feats {
    order: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 6px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 8px;
    box-sizing: border-box;
  }
  .xq-hero-feat {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
  }
  .xq-hero-feat i {
    min-width: 28px;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 9px;
  }
  .xq-hero-dots {
    display: none !important;
  }
  .xq-hero-art > img,
  .xq-hero-art > svg {
    width: min(100%, 320px);
    max-height: 250px;
  }
  .xq-brand-stage {
    width: min(100%, 360px);
  }
  .xq-brand-grid {
    width: min(76%, 280px);
    gap: 8px;
  }
  .xq-brand-item {
    border-radius: 10px;
    padding: 18%;
  }
  .xq-hero-photo,
  .xq-hero-photo--lg {
    width: 100%;
    max-width: none;
    max-height: none;
  }
  .xq-hero-photo img,
  .xq-hero-photo video {
    max-height: none;
    border-radius: 12px;
  }
}
@media (max-width: 767.98px) {
  .xq-hero-badge {
    align-self: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
  .xq-hero-text-stage {
    text-align: center;
  }
  .xq-hero-text h1,
  .xq-hero-text p {
    text-align: center;
  }
  .xq-hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .xq-hero-actions {
    justify-content: center;
  }
}
@media (max-width: 575.98px) {
  .xq-hero-feats {
    gap: 6px 4px;
    padding: 10px 6px;
  }
  .xq-hero-feat {
    font-size: 10.5px;
  }
  .xq-hero-feat i {
    min-width: 26px;
    width: 26px;
    height: 26px;
    font-size: 8px;
    border-radius: 7px;
  }
  .xq-hero-text h1 {
    font-size: 24px;
  }
  .xq-hero-text p {
    font-size: 14px;
  }
  .xq-hero-visual {
    min-height: 0;
    max-width: none;
  }
  .xq-hero-art > img,
  .xq-hero-art > svg {
    width: min(100%, 280px);
  }
  .xq-brand-stage {
    width: min(100%, 320px);
  }
  .xq-brand-grid {
    width: min(76%, 250px);
    gap: 6px;
  }
  .xq-brand-item {
    border-radius: 9px;
    padding: 16%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .xq-hero-text,
  .xq-hero-art {
    transition: none !important;
  }
}
