/* =====================================================
   qing-about-hero  —  关于我们首屏（背景图 + 眉标/标题/描述）
   前缀: qah-
   对应源码 .page-hero.page-hero--tech（关于页用法，无按钮组）
   ===================================================== */

.qah-wrap {
  position: relative;
  height: 520px;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #05070d;
}

/* ---------- 背景图层 ---------- */
.qah-scene {
  position: absolute;
  inset: 0;
  background-color: #05070d;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: var(--qah-bg, none);
  z-index: 1;
}

.qah-picture,
.qah-background-image {
  display: block;
  width: 100%;
}

.qah-background-image { height: auto; }

.qah-wrap.qah-full {
  display: grid;
  height: auto !important;
  min-height: 0 !important;
  align-items: stretch;
}

.qah-full .qah-scene,
.qah-full .qah-inner { grid-area: 1 / 1; }

.qah-full .qah-scene {
  position: relative;
  inset: auto;
}

.qah-full .qah-inner { align-self: center; }

/* 深色渐变遮罩，保证左侧文字可读 */
.qah-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 7, 13, 0.82) 0%,
    rgba(5, 7, 13, 0.55) 45%,
    rgba(5, 7, 13, 0.15) 100%
  );
}

.qah-no-overlay .qah-scene::after {
  display: none;
}

/* ---------- 内容层 ---------- */
.qah-inner {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}

.qah-left {
  max-width: 620px;
}

/* ---------- 眉标 ---------- */
.qah-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 22px;
}

/* ---------- 标题 ---------- */
.qah-title {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 26px;
}

/* ---------- 描述 ---------- */
.qah-desc {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0;
}

/* 新闻列表筛选条的前端承载槽。筛选节点仍属于新闻列表逻辑，只改变视觉位置。 */
.qah-news-filter-slot {
  display: none;
  width: 100%;
  max-width: 100%;
  margin-top: 28px;
}

.qah-news-filter-slot.is-filter-mounted {
  display: block;
}

.qah-news-filter-scope {
  width: 100%;
  --qnp-accent: #1f6feb;
}

.qah-news-filter-scope:empty {
  display: none;
}

.qah-news-filter-slot .qnp-filter {
  /* 新闻小部件的 Elementor 对齐控件带有更高作用域；进入 Banner 后固定
     跟随文案左边线，原位置下的居中设置不受影响。 */
  justify-content: flex-start !important;
  gap: 12px;
  margin: 0;
}

/* Banner 内的分类按钮使用深色背景专用交互；只限定在承载槽中，
   不改变新闻列表小部件在白色内容区里的默认样式。 */
.qah-news-filter-slot .qnp-tab,
.qah-news-filter-slot .qnp-tab.qnp-is-active {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  transform: translate3d(0, 0, 0);
  transition: color .28s ease, background .28s ease, border-color 0s,
    transform .24s cubic-bezier(.22,1,.36,1);
  transition-delay: 0s;
}

/* 禁用主题继承的扫光层，避免悬停时按钮左侧出现白闪。 */
.qah-news-filter-slot .qnp-tab::before,
.qah-news-filter-slot .qnp-tab::after {
  content: none !important;
  display: none !important;
}

.qah-news-filter-slot .qnp-tab:hover,
.qah-news-filter-slot .qnp-tab:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #0a367f 0%, #1b62d1 55%, #3a82f5 100%);
  border-color: #2f7ff0;
  box-shadow: none;
  transform: translate3d(0, -3px, 0);
}

/* 当前筛选项必须保留清晰的选中状态。 */
.qah-news-filter-slot .qnp-tab.qnp-is-active,
.qah-news-filter-slot .qnp-tab.qnp-is-active:hover,
.qah-news-filter-slot .qnp-tab.qnp-is-active:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #0a367f 0%, #1b62d1 55%, #3a82f5 100%);
  border-color: #2f7ff0;
  box-shadow: none;
}

.qah-news-filter-slot .qnp-tab.qnp-is-active:hover,
.qah-news-filter-slot .qnp-tab.qnp-is-active:focus-visible {
  transform: translate3d(0, -3px, 0);
}

/* ---------- 进入视口动画 ---------- */
@keyframes qah-enter-up {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.qing-motion-js .qah-wrap:not(.is-motion-visible) .qah-eyebrow,
.qing-motion-js .qah-wrap:not(.is-motion-visible) .qah-title,
.qing-motion-js .qah-wrap:not(.is-motion-visible) .qah-desc,
.qing-motion-js .qah-wrap:not(.is-motion-visible) .qah-news-filter-slot {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
}

.qah-wrap.is-motion-visible .qah-eyebrow,
.qah-wrap.is-motion-visible .qah-title,
.qah-wrap.is-motion-visible .qah-desc,
.qah-wrap.is-motion-visible .qah-news-filter-slot {
  animation: qah-enter-up 1.15s cubic-bezier(.22,1,.36,1) backwards;
}

.qah-wrap.is-motion-visible .qah-eyebrow { animation-delay: 100ms; }
.qah-wrap.is-motion-visible .qah-title { animation-delay: 280ms; }
.qah-wrap.is-motion-visible .qah-desc { animation-delay: 480ms; }
.qah-wrap.is-motion-visible .qah-news-filter-slot { animation-delay: 660ms; }

@media (prefers-reduced-motion: reduce) {
  .qing-motion-js .qah-wrap .qah-eyebrow,
  .qing-motion-js .qah-wrap .qah-title,
  .qing-motion-js .qah-wrap .qah-desc,
  .qing-motion-js .qah-wrap .qah-news-filter-slot {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =====================================================
   响应式
   说明：高度、内边距、文案栏宽度等已由 Elementor
   响应式控件按断点输出，此处仅保留字号类属性。
   ===================================================== */

@media (max-width: 900px) {
  .qah-cover .qah-scene {
    background-image: var(--qah-bg-mobile, var(--qah-bg, none));
  }

  .qah-wrap.qah-full.qah-full-mobile-fill {
    display: flex;
    height: var(--qah-height, 420px) !important;
    min-height: var(--qah-min-height, 380px) !important;
    align-items: center;
  }

  .qah-full-mobile-fill .qah-scene {
    position: absolute;
    inset: 0;
  }

  .qah-full-mobile-fill .qah-picture,
  .qah-full-mobile-fill .qah-background-image {
    width: 100%;
    height: 100%;
  }

  .qah-full-mobile-fill .qah-background-image { object-fit: cover; }

  .qah-title {
    font-size: 34px;
  }

  .qah-left,
  .qah-desc {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .qah-title {
    font-size: 28px;
  }

  .qah-eyebrow {
    font-size: 13px;
  }

  .qah-desc {
    font-size: 15px;
  }

  .qah-news-filter-slot {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 22px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .qah-news-filter-slot::-webkit-scrollbar {
    display: none;
  }

  .qah-news-filter-slot .qnp-filter {
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
  }

  .qah-news-filter-slot .qnp-tab {
    flex: 0 0 auto;
    padding: 8px 18px;
    white-space: nowrap;
  }
}
