/* ══════════════════════════════════════════
   内页头部 Banner（inner-topbanner）
   用于内页顶部横幅，与首页 .hero、产品页 banner 区分
   结构：.inner-topbanner > .inner-topbanner-slides > .inner-topbanner-slide
   ══════════════════════════════════════════ */

.inner-topbanner {
  --itb-fs-18: var(--fs-16);
  --itb-fs-20: var(--fs-18);
  padding: 0;
  margin: 0;
  background: var(--surface);
  overflow-x: hidden;
  position: relative;
}

.inner-topbanner-slides {
  position: relative;
  z-index: 1;
}

.inner-topbanner-slide {
  display: none;
  position: relative;
  overflow: hidden;
  height: var(--inner-topbanner-h);
}

.inner-topbanner-slide.active {
  display: block;
}

.inner-topbanner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  line-height: 0;
  background-color: var(--surface);
}

.inner-topbanner-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.inner-topbanner-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

@media (min-width: 769px) {
  .inner-topbanner-bg img {
    object-fit: cover;
    object-position: center center;
  }
}

.inner-topbanner-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  max-width:var( --hero-inner-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--hero-pr);
  padding-bottom: 20px;
  box-sizing: border-box;
}



.inner-topbanner-content {
  max-width: clamp(420px, calc(100vw * 500 / 1440), 500px);
  margin-top: var(--nav-height);
}

.inner-topbanner-title {
  font-size: var(--fs-block-head);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(10px, calc(100vw * 14 / 1920), 14px);
}

.inner-topbanner-title em {
  font-style: normal;
  color: var(--primary);
}

.inner-topbanner-desc {
  font-size: var(--itb-fs-18);
  color: var(--on-surface-variant);
  line-height: 1.75;
  margin: 0 0 clamp(16px, calc(100vw * 24/ 1440), 24px);
}

.inner-topbanner-btns {
  display: flex;
  align-items: center;
  gap: clamp(12px, calc(100vw * 16/ 1440), 16px);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.inner-topbanner .btn-primary,
.inner-topbanner .btn-secondary {
  box-sizing: border-box;
  min-width: clamp(120px, calc(100vw * 150/ 1440), 150px);
  height: var(--hero-btn-height);
  padding: 0 clamp(16px, calc(100vw * 24/ 1440), 24px);
  font-size: var(--itb-fs-20);
  font-weight: 500;
  border-radius: var(--r8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, calc(100vw * 7/ 1440), 7px);
  transition: all 0.2s;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.inner-topbanner .btn-primary {
  --hero-btn-icon: min(30px, calc(var(--hero-btn-height) * 0.75));
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.inner-topbanner .btn-primary .svg_span {
  width: var(--hero-btn-icon);
  height: var(--hero-btn-icon);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.inner-topbanner .btn-primary .svg_span svg {
  width: 55%;
  height: 55%;
  transform: rotate(-35deg);
}

.inner-topbanner .btn-primary:hover {
  background: var(--primary-container);
}

.inner-topbanner .btn-secondary {
  background: rgba(255, 255, 255, 0.3);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.inner-topbanner .btn-secondary:hover {
  background: rgba(0, 87, 156, 0.06);
}

/* ── 移动端 ── */
@media (max-width: 768px) {
  .inner-topbanner-slide {
    height: auto;
    min-height: var(--inner-topbanner-h);
  }

  .inner-topbanner-bg {
    overflow: hidden;
    background: linear-gradient(91deg, #eef5fb 7%, #f3f7fb 100%);
  }

  .inner-topbanner-bg img {
    object-fit: cover;
    object-position: 75% bottom;
    opacity: 0.5;
  }

  .inner-topbanner-inner {
    position: relative;
    min-height: 100%;
    align-items: flex-end;
    padding-top: calc(var(--nav-height) + 24px);
    padding-left: var(--container-px);
    padding-right: var(--container-px);
    padding-bottom: 20px;
  }

  .inner-topbanner-content {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

  .inner-topbanner-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .inner-topbanner-btns {
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .inner-topbanner .btn-primary,
  .inner-topbanner .btn-secondary {
    height: calc(var(--hero-btn-height) * 2 / 3);
    min-width: clamp(100px, calc(100vw * 130/ 1440), 130px);
    padding: 0 16px;
    font-size: var(--fs-14);
    gap: 5px;
  }

  .inner-topbanner .btn-primary {
    --hero-btn-icon: min(22px, calc(var(--hero-btn-height) * 2 / 3 * 0.75));
  }
}
