/* ============================================================
   全站统一 CTA（尾页上方“立即与优尔联系”条）
   自包含样式：不依赖各页 bootstrap / all.css，尺寸取自动态页实测值
   （1440 宽：容器 1080、上下留白 94、小标 24、主标 36、输入框 260x54、按钮 196x54）
   ============================================================ */

.ubCta {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background-color: #101014;
  background-image: url(/statics/rsit/images/ind08bg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  color: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  overflow: hidden;
}
.ubCta *,
.ubCta *::before,
.ubCta *::after { box-sizing: border-box; }

.ubCtaSack {
  width: min(1080px, 86vw);
  margin: 0 auto;
  padding: 94px 0;
}

.ubCtaSmall {
  position: relative;
  display: block;
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
  color: #9c9c9c;
  letter-spacing: 0;
}

.ubCtaTitle {
  position: relative;
  display: block;
  margin: 0 0 38px;
  font-size: 36px;
  line-height: 1.5;
  font-weight: 500;
  color: #9c9c9c;
  letter-spacing: 0;
}

/* 扫光动画：底层灰字 + 白色覆盖层，覆盖层宽度 0 → 100%，逐字把灰字刷成白字
   与动态页 .ind08 .ind08Sm 的实现同源，进入视口时由脚本加 .on 触发 */
.ubCtaTxt { color: inherit; }
.ubCtaWipe {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #ffffff;
  pointer-events: none;
}
.ubCta.on .ubCtaWipe {
  width: 100%;
  transition: width 1.8s .2s cubic-bezier(.25, .46, .45, .94);
}
.ubCta.on .ubCtaTitle .ubCtaWipe { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .ubCtaWipe { width: 100%; }
}

.ubCtaForm {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.ubCtaInputs {
  display: flex;
  gap: 20px;
  flex: 0 1 auto;
}

.ubCtaInputs input {
  display: block;
  width: 260px;
  height: 54px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  background: #ffffff;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ubCtaInputs input::placeholder { color: #888888; }
.ubCtaInputs input:focus { border-color: #E01E24; }

.ubCtaBtns {
  display: flex;
  gap: 18px;
  flex: 0 1 auto;
}

.ubCtaBtns button,
.ubCtaBtns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  height: 54px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #E01E24;
  color: #ffffff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all .5s ease;
  -webkit-appearance: none;
  appearance: none;
}
/* 悬停交互与服务页原生 CTA 统一：左上、右下圆角张开到 30px，整块上浮 8px */
.ubCtaBtns button:hover,
.ubCtaBtns a:hover {
  border-radius: 30px 0 30px 0;
  transform: translateY(-8px);
  background: #E01E24;
  color: #fff;
  text-decoration: none;
}
.ubCtaBtns button:focus-visible,
.ubCtaBtns a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.ubCtaMsg {
  display: none;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #E01E24;
}
.ubCtaMsg.on { display: block; }

/* 1366 及以下：仅收窄输入框，字号与 1440 保持一致，避免与动态页出现字号差 */
@media (max-width:1365.98px) {
  .ubCtaSack { width: min(1080px, 88vw); }
  .ubCtaInputs input { width: 236px; }
  .ubCtaBtns button,
  .ubCtaBtns a { width: 180px; }
}

/* 1024 以下：文字会折行，关闭扫光层，直接显示白字 */
@media (max-width:1023.98px) {
  .ubCtaWipe { display: none; }
  .ubCtaSmall { color: #9c9c9c; }
  .ubCtaTitle { color: #ffffff; }
  .ubCtaSack { padding: 56px 0; }
  .ubCtaSmall { font-size: 18px; }
  .ubCtaTitle { font-size: 26px; margin-bottom: 26px; }
  .ubCtaInputs { flex: 1 1 100%; }
  .ubCtaInputs input { flex: 1 1 0; width: auto; height: 50px; }
  .ubCtaBtns { flex: 1 1 100%; }
  .ubCtaBtns button,
  .ubCtaBtns a { flex: 1 1 0; width: auto; height: 50px; }
}

/* 767 以下：单列 */
@media (max-width:767px) {
  .ubCtaSack { width: auto; padding: 44px 20px; }
  .ubCtaSmall { font-size: 15px; margin-bottom: 10px; }
  .ubCtaTitle { font-size: 21px; margin-bottom: 22px; }
  .ubCtaForm { gap: 12px; }
  .ubCtaInputs { flex-direction: column; gap: 12px; }
  .ubCtaInputs input { width: 100%; height: 48px; font-size: 15px; }
  .ubCtaBtns { gap: 12px; }
  .ubCtaBtns button,
  .ubCtaBtns a { height: 48px; font-size: 16px; }
}
