/* =====================================================
   qing-tech-hero  —  核心技术页首屏（背景图 banner + 按钮组）
   前缀: qth-
   对应源码 .page-hero--tech
   ===================================================== */

.qth-wrap {
  --qth-primary-bg: transparent;
  --qth-primary-color: #fff;
  --qth-primary-border: rgba(255,255,255,.78);
  --qth-primary-hover-bg: linear-gradient(135deg,#0a367f 0%,#1b62d1 55%,#3a82f5 100%);
  --qth-primary-hover-color: #fff;
  --qth-primary-hover-border: transparent;
  --qth-ghost-bg: transparent;
  --qth-ghost-color: #fff;
  --qth-ghost-border: rgba(255,255,255,.78);
  --qth-ghost-hover-bg: linear-gradient(135deg,#0a367f 0%,#1b62d1 55%,#3a82f5 100%);
  --qth-ghost-hover-color: #fff;
  --qth-ghost-hover-border: transparent;
  position: relative;
  height: 520px;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #05070d;
}

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

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

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

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

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

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

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

/* 深色渐变遮罩，保证左侧文字可读 */
.qth-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%
  );
}

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

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

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

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

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

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

/* ---------- 按钮组 ---------- */
.qth-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.qth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 13px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.24s cubic-bezier(.22,1,.36,1), background 0.28s ease, border-color 0.28s ease,
    color 0.25s ease;
}

/* 主按钮 */
.qth-btn--primary {
  background: var(--qth-primary-bg);
  color: var(--qth-primary-color);
  border: 1px solid var(--qth-primary-border);
}

.qth-btn--primary:hover,
.qth-btn--primary:focus-visible {
  background: var(--qth-primary-hover-bg);
  color: var(--qth-primary-hover-color);
  border-color: var(--qth-primary-hover-border);
  box-shadow: none;
  transform: translate3d(0, -3px, 0);
}

/* 幽灵按钮 */
.qth-btn--ghost {
  background: var(--qth-ghost-bg);
  color: var(--qth-ghost-color);
  border: 1px solid var(--qth-ghost-border);
}

.qth-btn--ghost:hover,
.qth-btn--ghost:focus-visible {
  color: var(--qth-ghost-hover-color);
  border-color: var(--qth-ghost-hover-border);
  background: var(--qth-ghost-hover-bg);
  box-shadow: none;
  transform: translate3d(0, -3px, 0);
}

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

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

.qth-wrap.is-motion-visible .qth-eyebrow,
.qth-wrap.is-motion-visible .qth-title,
.qth-wrap.is-motion-visible .qth-desc,
.qth-wrap.is-motion-visible .qth-btn {
  animation: qth-enter-up .82s cubic-bezier(.22,1,.36,1) backwards;
}

.qth-wrap.is-motion-visible .qth-eyebrow { animation-delay: 80ms; }
.qth-wrap.is-motion-visible .qth-title { animation-delay: 180ms; }
.qth-wrap.is-motion-visible .qth-desc { animation-delay: 300ms; }
.qth-wrap.is-motion-visible .qth-btn:nth-child(1) { animation-delay: 420ms; }
.qth-wrap.is-motion-visible .qth-btn:nth-child(2) { animation-delay: 540ms; }

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

/* ---------- 响应式 ≤900px ---------- */
@media (max-width: 900px) {
  .qth-cover .qth-scene {
    background-image: var(--qth-bg-mobile, var(--qth-bg, none));
  }

  .qth-wrap {
    height: auto;
    min-height: 0;
    padding: 0;
  }

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

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

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

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

  .qth-inner {
    padding: 72px 24px;
  }

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

  .qth-left {
    max-width: none;
  }

  .qth-desc {
    max-width: none;
  }
}

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

  .qth-btns {
    gap: 14px;
  }

  .qth-btn {
    min-width: 0;
    flex: 1 1 100%;
  }
}
